[gnome-disk-utility/udisks2-port] Never show partitions in "Other Devices" since they are already in the grid



commit cab50d63227992fe42f8cc838d7e56dda18421cf
Author: David Zeuthen <davidz redhat com>
Date:   Thu Mar 10 16:09:11 2011 -0500

    Never show partitions in "Other Devices" since they are already in the grid
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/palimpsest/gdudevicetreemodel.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gdudevicetreemodel.c b/src/palimpsest/gdudevicetreemodel.c
index 8d1956f..33e4e59 100644
--- a/src/palimpsest/gdudevicetreemodel.c
+++ b/src/palimpsest/gdudevicetreemodel.c
@@ -703,6 +703,10 @@ should_include_block (GDBusObjectProxy *object_proxy)
   if (size == 0)
     goto out;
 
+  /* Only include devices if they are top-level */
+  if (udisks_block_device_get_part_entry (block))
+    goto out;
+
   /* Don't include if already shown in "Direct-Attached devices" */
   lun = udisks_block_device_get_lun (block);
   if (g_strcmp0 (lun, "/") != 0)



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