gvfs r1241 - in trunk: . hal



Author: alexl
Date: Fri Feb  8 16:14:09 2008
New Revision: 1241
URL: http://svn.gnome.org/viewvc/gvfs?rev=1241&view=rev

Log:
2008-02-08  Alexander Larsson  <alexl redhat com>

        * hal/ghalvolume.c:
        Implement g_volume_should_automount.



Modified:
   trunk/ChangeLog
   trunk/hal/ghalvolume.c

Modified: trunk/hal/ghalvolume.c
==============================================================================
--- trunk/hal/ghalvolume.c	(original)
+++ trunk/hal/ghalvolume.c	Fri Feb  8 16:14:09 2008
@@ -606,6 +606,15 @@
   return FALSE;
 }
 
+static gboolean
+g_hal_volume_should_automount (GVolume *volume)
+{
+  GHalVolume *hal_volume = G_HAL_VOLUME (volume);
+  /* TODO: For now, just never automount things that are not
+     local. Need to figure out a better approach later. */
+  return hal_volume->foreign_mount == NULL;
+}
+
 static GDrive *
 g_hal_volume_get_drive (GVolume *volume)
 {
@@ -974,6 +983,7 @@
   iface->get_mount = g_hal_volume_get_mount;
   iface->can_mount = g_hal_volume_can_mount;
   iface->can_eject = g_hal_volume_can_eject;
+  iface->should_automount = g_hal_volume_should_automount;
   iface->mount_fn = g_hal_volume_mount;
   iface->mount_finish = g_hal_volume_mount_finish;
   iface->eject = g_hal_volume_eject;



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