diff options
author | David Zeuthen <davidz@redhat.com> | 2009-02-16 10:07:54 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2009-02-16 10:07:54 +0000 |
commit | 498596add83ad1ce81c8e712b44a656c0640ee13 (patch) | |
tree | ae1c9dcaf7d20bf576d229074b7d712d7f1c4a25 /src/nautilus-places-sidebar.c | |
parent | 3a1e67c82bd4bc3f552dadf829ad422a502114dc (diff) | |
download | nautilus-498596add83ad1ce81c8e712b44a656c0640ee13.tar.gz |
Don't use shadowed mounts.
2009-02-10 David Zeuthen <davidz@redhat.com>
Don't use shadowed mounts.
* libnautilus-private/nautilus-desktop-link-monitor.c (has_mount),
(create_mount_link), (remove_mount_link), (mount_added_callback),
(mount_removed_callback), (mount_changed_callback):
* libnautilus-private/nautilus-directory-async.c (get_mount_at):
* src/file-manager/fm-tree-view.c (add_root_for_mount):
* src/nautilus-pathbar.c (is_file_path_mounted_mount):
* src/nautilus-places-sidebar.c (update_places):
Honor g_mount_is_shadowed().
svn path=/trunk/; revision=14953
Diffstat (limited to 'src/nautilus-places-sidebar.c')
-rw-r--r-- | src/nautilus-places-sidebar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c index 467475d9c..77d74ec5c 100644 --- a/src/nautilus-places-sidebar.c +++ b/src/nautilus-places-sidebar.c @@ -451,6 +451,10 @@ update_places (NautilusPlacesSidebar *sidebar) mounts = g_volume_monitor_get_mounts (volume_monitor); for (l = mounts; l != NULL; l = l->next) { mount = l->data; + if (g_mount_is_shadowed (mount)) { + g_object_unref (mount); + continue; + } volume = g_mount_get_volume (mount); if (volume != NULL) { g_object_unref (volume); |