[gvfs] Use new gnome-disk-utility API to hide unwanted devices



commit 1ba5521dc86d7be59fc809bb7c118275fad8e4c8
Author: David Zeuthen <davidz redhat com>
Date:   Wed Apr 15 11:33:36 2009 -0400

    Use new gnome-disk-utility API to hide unwanted devices
    
    This is to resolve bugs like
    
     https://bugzilla.redhat.com/show_bug.cgi?id=495170
---
 monitor/gdu/ggduvolumemonitor.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/monitor/gdu/ggduvolumemonitor.c b/monitor/gdu/ggduvolumemonitor.c
index 67e2ec0..2c1f727 100644
--- a/monitor/gdu/ggduvolumemonitor.c
+++ b/monitor/gdu/ggduvolumemonitor.c
@@ -720,6 +720,12 @@ should_mount_be_ignored (GduPool *pool, GduDevice *d)
 
   ret = FALSE;
 
+  if (gdu_device_get_presentation_hide (d))
+    {
+      ret = TRUE;
+      goto out;
+    }
+
   mount_path = gdu_device_get_mount_path (d);
   if (mount_path == NULL || strlen (mount_path) == 0)
     goto out;
@@ -751,6 +757,9 @@ should_volume_be_ignored (GduPool *pool, GduVolume *volume, GList *fstab_mount_p
 
   device = gdu_presentable_get_device (GDU_PRESENTABLE (volume));
 
+  if (gdu_device_get_presentation_hide (device))
+    goto out;
+
   usage = gdu_device_id_get_usage (device);
   type = gdu_device_id_get_type (device);
 
@@ -824,6 +833,9 @@ should_drive_be_ignored (GduPool *pool, GduDrive *d, GList *fstab_mount_points)
       goto out;
     }
 
+  if (gdu_device_get_presentation_hide (device))
+    goto out;
+
   has_volumes = FALSE;
   all_volumes_are_ignored = TRUE;
 



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