diff options
author | infirit <[email protected]> | 2014-11-26 16:54:51 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-26 18:13:43 +0100 |
commit | f54cd4ccea29bb077dbc235331979ea7bc51d526 (patch) | |
tree | d1825e456abad37bdbbcdc1e08896f6e16d9d62d | |
parent | 836d978de76d2ecda2fe5c26dc409ef3e3881046 (diff) | |
download | mate-applets-f54cd4ccea29bb077dbc235331979ea7bc51d526.tar.bz2 mate-applets-f54cd4ccea29bb077dbc235331979ea7bc51d526.tar.xz |
drivemount: do not show shadowed mounts
Based on gnome-applets commit: f7cd488eae7d25c0b2be6a709bc5ebf0420cd165
From: Aleksander Morgado <[email protected]>
Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=622709
-rw-r--r-- | 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 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) { |