[gnome-applets] drive mount: does not show shadowed mounts, bug #622709 (Aleksander Morgado)



commit f7cd488eae7d25c0b2be6a709bc5ebf0420cd165
Author: Enrico Minack <enrico-minack gmx de>
Date:   Mon Jun 13 12:07:10 2011 +0200

    drive mount: does not show shadowed mounts, bug #622709 (Aleksander Morgado)

 drivemount/drive-list.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/drivemount/drive-list.c b/drivemount/drive-list.c
index 6c542f0..2b7bee5 100644
--- a/drivemount/drive-list.c
+++ b/drivemount/drive-list.c
@@ -368,6 +368,11 @@ add_mount (DriveList *self, GMount *mount)
     GtkWidget *button;
     GVolume *volume;
 
+    /* ignore mounts reported as shadowed */
+    if (g_mount_is_shadowed (mount)) {
+        return;
+    }
+
     /* ignore mounts attached to a volume */
     volume = g_mount_get_volume (mount);
     if (volume) {



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