Commit 04a79696 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Use the new g_volume_should_automount()

2008-02-08  Alexander Larsson  <alexl@redhat.com>

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



svn path=/trunk/; revision=13714
parent 26c5c5e9
2008-02-08 Alexander Larsson <alexl@redhat.com>
* src/nautilus-application.c:
Use the new g_volume_should_automount()
2008-02-08 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-desktop-link.c:
......
......@@ -195,9 +195,8 @@ automount_all_volumes (NautilusApplication *application)
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 @@ volume_added_callback (GVolumeMonitor *monitor,
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment