diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2008-06-15 18:42:26 +0000 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@src.gnome.org> | 2008-06-15 18:42:26 +0000 |
commit | f95be76fde0082c647045f753151342e7134d091 (patch) | |
tree | 4d4c662f9919bbb0ccdd8369687fc0fdbe6171fa | |
parent | d297e3e141a553dfc802858f9c0bbfba9224060f (diff) | |
download | nautilus-f95be76fde0082c647045f753151342e7134d091.tar.gz |
reviewed by: David Zeuthen <david@fubar.dk>
2008-06-15 Cosimo Cecchi <cosimoc@gnome.org>
reviewed by: David Zeuthen <david@fubar.dk>
* libnautilus-private/nautilus-autorun.c:
Always open folder if the corresponding action is selected
in the autorun preferences.
Patch by Matthias Clasen. (#528675).
svn path=/trunk/; revision=14266
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | libnautilus-private/nautilus-autorun.c | 16 |
2 files changed, 13 insertions, 12 deletions
@@ -1,3 +1,12 @@ +2008-06-15 Cosimo Cecchi <cosimoc@gnome.org> + + reviewed by: David Zeuthen <david@fubar.dk> + + * libnautilus-private/nautilus-autorun.c: + Always open folder if the corresponding action is selected + in the autorun preferences. + Patch by Matthias Clasen. (#528675). + 2008-06-12 Cosimo Cecchi <cosimoc@gnome.org> * libnautilus-private/nautilus-dnd.c: diff --git a/libnautilus-private/nautilus-autorun.c b/libnautilus-private/nautilus-autorun.c index 79382eede..663a89891 100644 --- a/libnautilus-private/nautilus-autorun.c +++ b/libnautilus-private/nautilus-autorun.c @@ -1200,15 +1200,6 @@ typedef struct { gpointer user_data; } AutorunData; - -static void -autorun_open_folder_for_mount (AutorunData *data) -{ - if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_MEDIA_AUTOMOUNT_OPEN) && - data->open_window_func != NULL) - data->open_window_func (data->mount, data->user_data); -} - static void autorun_guessed_content_type_callback (GObject *source_object, GAsyncResult *res, @@ -1237,13 +1228,14 @@ autorun_guessed_content_type_callback (GObject *source_object, } g_strfreev (guessed_content_type); } else { - open_folder = TRUE; + if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_MEDIA_AUTOMOUNT_OPEN)) + open_folder = TRUE; } } /* only open the folder once.. */ - if (open_folder) { - autorun_open_folder_for_mount (data); + if (open_folder && data->open_window_func != NULL) { + data->open_window_func (data->mount, data->user_data); } g_object_unref (data->mount); |