[gnome-disk-utility] Fix build with older udisk version



commit 72f091ac9a1578e5a9616991cdff763c449a5098
Author: Alexander Larsson <alexl redhat com>
Date:   Thu May 3 15:18:48 2012 +0200

    Fix build with older udisk version

 src/disks/gduwindow.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index c80aeeb..6d0b9ab 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -2874,19 +2874,19 @@ on_devtab_loop_autoclear_switch_notify_active (GObject    *gobject,
     }
 
   sw_value = !! gtk_switch_get_active (GTK_SWITCH (gobject));
-  if (sw_value != (!!udisks_loop_get_autoclear (loop)))
-    {
 #ifdef UDISKS_CHECK_VERSION
 # if UDISKS_CHECK_VERSION(1,97,0)
+  if (sw_value != (!!udisks_loop_get_autoclear (loop)))
+    {
       udisks_loop_call_set_autoclear (loop,
                                       sw_value,
                                       g_variant_new ("a{sv}", NULL), /* options */
                                       NULL, /* cancellable */
                                       (GAsyncReadyCallback) loop_set_autoclear_cb,
                                       g_object_ref (window));
+    }
 # endif
 #endif
-    }
 
  out:
   ;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]