conduit r1771 - in branches/gnome-2-24: . conduit/platform



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

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

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



Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/conduit/platform/FileGnomeVfs.py

Modified: branches/gnome-2-24/conduit/platform/FileGnomeVfs.py
==============================================================================
--- branches/gnome-2-24/conduit/platform/FileGnomeVfs.py	(original)
+++ branches/gnome-2-24/conduit/platform/FileGnomeVfs.py	Mon Oct 20 20:15:35 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]