[rhythmbox] More shadowed mounts ignoring



commit 899a292f7dfd96517f470d39f1bea73d0e4de55e
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Aug 19 14:38:18 2009 +0100

    More shadowed mounts ignoring
    
    in the removable media manager.

 shell/rb-removable-media-manager.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-removable-media-manager.c b/shell/rb-removable-media-manager.c
index 2c71899..c001324 100644
--- a/shell/rb-removable-media-manager.c
+++ b/shell/rb-removable-media-manager.c
@@ -660,6 +660,13 @@ rb_removable_media_manager_add_volume (RBRemovableMediaManager *mgr, GVolume *vo
 
 	mount = g_volume_get_mount (volume);
 	if (mount != NULL) {
+#if GLIB_CHECK_VERSION(2, 20, 0)
+		if (g_mount_is_shadowed (mount) != FALSE) {
+			rb_debug ("mount is shadowed, so ignoring the volume");
+			g_object_unref (mount);
+			return;
+		}
+#endif
 		if (g_hash_table_lookup (priv->mount_mapping, mount) != NULL) {
 			/* this can probably never happen, but it's OK */
 			rb_debug ("already created a source for the mount, so ignoring the volume");



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