Author: alexl
Date: Fri Feb  8 16:13:37 2008
New Revision: 13714
URL: http://svn.gnome.org/viewvc/nautilus?rev=13714&view=rev

Log:
2008-02-08  Alexander Larsson  <[EMAIL PROTECTED]>

        * src/nautilus-application.c:
        Use the new g_volume_should_automount()




Modified:
   trunk/ChangeLog
   trunk/src/nautilus-application.c

Modified: trunk/src/nautilus-application.c
==============================================================================
--- trunk/src/nautilus-application.c    (original)
+++ trunk/src/nautilus-application.c    Fri Feb  8 16:13:37 2008
@@ -195,9 +195,8 @@
                for (l = volumes; l != NULL; l = l->next) {
                        volume = l->data;
                        
-                       /* TODO: only do this for local volumes */
-                       
-                       if (!g_volume_can_mount (volume)) {
+                       if (!g_volume_should_automount (volume) ||
+                           !g_volume_can_mount (volume)) {
                                continue;
                        }
                        
@@ -1332,6 +1331,7 @@
                       NautilusApplication *application)
 {
        if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_MEDIA_AUTOMOUNT) 
&&
+           g_volume_should_automount (volume) &&
            g_volume_can_mount (volume)) {
                nautilus_file_operations_mount_volume (NULL, volume);
        }
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to