Guest User

Untitled

a guest
Feb 20th, 2018
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.04 KB | None | 0 0
  1. From 38a815f43a61704b2702c1f117d7f899d8ac085d Mon Sep 17 00:00:00 2001
  2. From: polarfox <mikko@ruohola.org>
  3. Date: Thu, 27 Oct 2011 12:36:56 +0300
  4. Subject: [PATCH 1/1] build fixes
  5.  
  6. ---
  7. src/common/pwstorage/backend_kwallet.c |    4 ++--
  8.  src/imageio/storage/email.c            |    4 ++--
  9.  2 files changed, 4 insertions(+), 4 deletions(-)
  10.  
  11. diff --git a/src/common/pwstorage/backend_kwallet.c b/src/common/pwstorage/backend_kwallet.c
  12. index 7c39d8c..9895128 100644
  13. --- a/src/common/pwstorage/backend_kwallet.c
  14. +++ b/src/common/pwstorage/backend_kwallet.c
  15. @@ -203,8 +203,8 @@ const backend_kwallet_context_t* dt_pwstorage_kwallet_new()
  16.  
  17.    // Initialize threading in dbus-glib - it should be fine for
  18.    // dbus_g_thread_init to be called multiple times.
  19. -  if (!g_thread_supported())
  20. -    g_thread_init(NULL);
  21. +//  if (!g_thread_supported())
  22. +//    g_thread_init(NULL);
  23.    dbus_g_thread_init();
  24.  
  25.    GError* error = NULL;
  26. diff --git a/src/imageio/storage/email.c b/src/imageio/storage/email.c
  27. index 9bdd2eb..629e48f 100644
  28. --- a/src/imageio/storage/email.c
  29. +++ b/src/imageio/storage/email.c
  30. @@ -95,7 +95,7 @@ store (dt_imageio_module_data_t *sdata, const int imgid, dt_imageio_module_forma
  31.  
  32.    char dirname[4096];
  33.    dt_image_full_path(imgid, dirname, 1024);
  34. -  const gchar * filename = g_basename( dirname );
  35. +  const gchar * filename = g_path_get_basename( dirname );
  36.    gchar * end = g_strrstr( filename,".")+1;
  37.    g_strlcpy( end, format->extension(fdata), sizeof(dirname)-(end-dirname));
  38.  
  39. @@ -196,7 +196,7 @@ proceed: ; // Let's build up uri / command
  40.    {
  41.      gchar exif[256]= {0};
  42.      _email_attachment_t *attachment=( _email_attachment_t *)d->images->data;
  43. -    const gchar *filename = g_basename( attachment->file );
  44. +    const gchar *filename = g_path_get_basename( attachment->file );
  45.      const dt_image_t *img = dt_image_cache_read_get(darktable.image_cache, attachment->imgid);
  46.      dt_image_print_exif( img, exif, 256 );
  47.      g_snprintf(body+strlen(body),4096-strlen(body), imageBodyFormat, filename, exif );
  48. --
  49. 1.7.5.4
Add Comment
Please, Sign In to add comment