[gedit] Fix shadowed mounts appearing in the filebrowser bookmarks view



commit 2f65c8afce8ed04f0600ab4a3429c0c3f39d13d6
Author: Martin Szulecki <opensuse sukimashita com>
Date:   Fri Apr 2 19:42:03 2010 +0200

    Fix shadowed mounts appearing in the filebrowser bookmarks view
    
    According to documentation for g_mount_is_shadowed() any implementation
    should not list mounts which are shadowed. This fixes mounts from the
    gphoto2 or afc GVFS backend to not show up twice in the filebrowser.

 plugins/filebrowser/gedit-file-bookmarks-store.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-bookmarks-store.c b/plugins/filebrowser/gedit-file-bookmarks-store.c
index d53bfd4..37c5d78 100644
--- a/plugins/filebrowser/gedit-file-bookmarks-store.c
+++ b/plugins/filebrowser/gedit-file-bookmarks-store.c
@@ -412,7 +412,7 @@ process_mount_novolume_cb (GMount 		   *mount,
 	{
 		g_object_unref (volume);
 	}
-	else
+	else if (!g_mount_is_shadowed (mount))
 	{
 		/* Add the mount */
 		add_fs (model, mount, GEDIT_FILE_BOOKMARKS_STORE_NONE, NULL);



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