[gnome-disk-utility] Also show Autoclear switch for free space on a partitioned loop device



commit 847e32f4869de861ffe0cf15453d5d95976529ae
Author: David Zeuthen <davidz redhat com>
Date:   Fri May 4 12:39:10 2012 -0400

    Also show Autoclear switch for free space on a partitioned loop device
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/disks/gduwindow.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index 6d0b9ab..4f7ce3a 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -2127,6 +2127,16 @@ update_device_page_for_free_space (GduWindow          *window,
                   "devtab-backing-file-value-label",
                   s, SET_MARKUP_FLAGS_NONE);
       g_free (s);
+
+#ifdef UDISKS_CHECK_VERSION
+# if UDISKS_CHECK_VERSION(1,97,0)
+      set_switch (window,
+                  "devtab-loop-autoclear-label",
+                  "devtab-loop-autoclear-switch-box",
+                  "devtab-loop-autoclear-switch",
+                  udisks_loop_get_autoclear (loop));
+# endif
+#endif
     }
 
   table = udisks_object_peek_partition_table (object);



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