[rhythmbox] Never ever use shadowed mounts for devices



commit 719274640ca2acdb51f72ced539450850b7c90e8
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Aug 19 14:01:06 2009 +0100

    Never ever use shadowed mounts for devices
    
    Otherwise a bunch of them will end up duplicated.

 shell/rb-removable-media-manager.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/shell/rb-removable-media-manager.c b/shell/rb-removable-media-manager.c
index bd86540..2c71899 100644
--- a/shell/rb-removable-media-manager.c
+++ b/shell/rb-removable-media-manager.c
@@ -712,7 +712,11 @@ rb_removable_media_manager_add_mount (RBRemovableMediaManager *mgr, GMount *moun
 	if (g_hash_table_lookup (priv->mount_mapping, mount) != NULL) {
 		return;
 	}
-
+#if GLIB_CHECK_VERSION(2, 20, 0)
+	if (g_mount_is_shadowed (mount) != FALSE) {
+		return;
+	}
+#endif
 	volume = g_mount_get_volume (mount);
 	if (volume == NULL) {
 		rb_debug ("Unhandled media, no volume for mount");



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