From f54cd4ccea29bb077dbc235331979ea7bc51d526 Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 26 Nov 2014 16:54:51 +0100 Subject: drivemount: do not show shadowed mounts Based on gnome-applets commit: f7cd488eae7d25c0b2be6a709bc5ebf0420cd165 From: Aleksander Morgado Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=622709 --- drivemount/drive-list.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivemount/drive-list.c b/drivemount/drive-list.c index e249482f..2f8eb6f3 100644 --- a/drivemount/drive-list.c +++ b/drivemount/drive-list.c @@ -370,6 +370,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) { -- cgit v1.2.1