[Xfce4-commits] <thunar:jannis/thumbnailer-improvements> Fix build without D-Bus.

Jannis Pohlmann noreply at xfce.org
Tue Feb 8 11:42:01 CET 2011


Updating branch refs/heads/jannis/thumbnailer-improvements
         to 5a20e93a0d2734e8cb200d29dcb0ca31560805d0 (commit)
       from 216f3e9921557ddf2c763ac12d95ec085836cf14 (commit)

commit 5a20e93a0d2734e8cb200d29dcb0ca31560805d0
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Tue Feb 8 11:40:07 2011 +0100

    Fix build without D-Bus.

 thunar/thunar-thumbnail-cache.c |    2 +-
 thunar/thunar-thumbnailer.c     |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/thunar/thunar-thumbnail-cache.c b/thunar/thunar-thumbnail-cache.c
index 4725498..0fdf941 100644
--- a/thunar/thunar-thumbnail-cache.c
+++ b/thunar/thunar-thumbnail-cache.c
@@ -120,9 +120,9 @@ thunar_thumbnail_cache_init (ThunarThumbnailCache *cache)
 static void
 thunar_thumbnail_cache_finalize (GObject *object)
 {
+#ifdef HAVE_DBUS
   ThunarThumbnailCache *cache = THUNAR_THUMBNAIL_CACHE (object);
 
-#ifdef HAVE_DBUS
   /* acquire a cache lock */
   g_mutex_lock (cache->lock);
 
diff --git a/thunar/thunar-thumbnailer.c b/thunar/thunar-thumbnailer.c
index 296f256..32d6218 100644
--- a/thunar/thunar-thumbnailer.c
+++ b/thunar/thunar-thumbnailer.c
@@ -80,7 +80,7 @@
 
 
 
-#if HAVE_DBUS
+#ifdef HAVE_DBUS
 typedef enum
 {
   THUNAR_THUMBNAILER_IDLE_ERROR,
@@ -777,9 +777,9 @@ thunar_thumbnailer_queue_files (ThunarThumbnailer *thumbnailer,
                                 GList             *files,
                                 guint             *request)
 {
-  const gchar **mime_hints;
   gboolean      success = FALSE;
 #ifdef HAVE_DBUS
+  const gchar **mime_hints;
   gchar       **uris;
   GList        *lp;
   GList        *supported_files = NULL;



More information about the Xfce4-commits mailing list