conduit r1772 - in trunk: . conduit/platform



Author: jstowers
Date: Mon Oct 20 20:16:02 2008
New Revision: 1772
URL: http://svn.gnome.org/viewvc/conduit?rev=1772&view=rev

Log:
2008-10-20  John Stowers  <john stowers gmail com>

	* conduit/platform/FileGnomeVfs.py: Only show user visible 
    gnomevfs volumes



Modified:
   trunk/ChangeLog
   trunk/conduit/platform/FileGnomeVfs.py

Modified: trunk/conduit/platform/FileGnomeVfs.py
==============================================================================
--- trunk/conduit/platform/FileGnomeVfs.py	(original)
+++ trunk/conduit/platform/FileGnomeVfs.py	Mon Oct 20 20:16:02 2008
@@ -291,10 +291,11 @@
         self._vm.connect("volume-unmounted", self._unmounted_cb)
 
     def _mounted_cb(self, sender, volume):
-        self.emit("volume-mounted", 
-            volume.get_hal_udi(),
-            volume.get_activation_uri(),
-            volume.get_display_name())
+        if volume.is_user_visible():
+            self.emit("volume-mounted", 
+                volume.get_hal_udi(),
+                volume.get_activation_uri(),
+                volume.get_display_name())
 
     def _unmounted_cb(self, sender, volume):
         self.emit("volume-unmounted", volume.get_hal_udi())
@@ -302,7 +303,8 @@
     def get_mounted_volumes(self):
         vols = {}
         for v in self._vm.get_mounted_volumes():
-            vols[v.get_hal_udi()] = (v.get_activation_uri(), v.get_display_name())
+            if v.is_user_visible():
+                vols[v.get_hal_udi()] = (v.get_activation_uri(), v.get_display_name())
         return vols
 
 class FileMonitor(conduit.platform.FileMonitor):



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