rpms/nautilus/devel nautilus-fix-open-folder.patch, NONE, 1.1 nautilus.spec, 1.199, 1.200

Matthias Clasen (mclasen) fedora-extras-commits at redhat.com
Fri Apr 18 02:39:33 UTC 2008


Author: mclasen

Update of /cvs/extras/rpms/nautilus/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21714

Modified Files:
	nautilus.spec 
Added Files:
	nautilus-fix-open-folder.patch 
Log Message:
Make "Open Folder" work as expected in media handling


nautilus-fix-open-folder.patch:

--- NEW FILE nautilus-fix-open-folder.patch ---
diff -up nautilus-2.22.2/libnautilus-private/nautilus-autorun.c.fix-open-folder nautilus-2.22.2/libnautilus-private/nautilus-autorun.c
--- nautilus-2.22.2/libnautilus-private/nautilus-autorun.c.fix-open-folder	2008-04-17 22:30:04.000000000 -0400
+++ nautilus-2.22.2/libnautilus-private/nautilus-autorun.c	2008-04-17 22:30:10.000000000 -0400
@@ -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 (G
 			}
 			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);


Index: nautilus.spec
===================================================================
RCS file: /cvs/extras/rpms/nautilus/devel/nautilus.spec,v
retrieving revision 1.199
retrieving revision 1.200
diff -u -r1.199 -r1.200
--- nautilus.spec	18 Apr 2008 00:14:15 -0000	1.199
+++ nautilus.spec	18 Apr 2008 02:38:51 -0000	1.200
@@ -19,7 +19,7 @@
 Name:		nautilus
 Summary:        Nautilus is a file manager for GNOME
 Version: 	2.22.2
-Release:	4%{?dist}
+Release:	5%{?dist}
 License: 	GPLv2+
 Group:          User Interface/Desktops
 Source: 	http://download.gnome.org/sources/%{name}/2.22/%{name}-%{version}.tar.bz2
@@ -90,6 +90,9 @@
 
 Patch10:        nautilus-gvfs-desktop-key.patch
 
+# http://bugzilla.gnome.org/show_bug.cgi?id=528675
+Patch11:	nautilus-fix-open-folder.patch
+
 %description
 Nautilus integrates access to files, applications, media,
 Internet-based resources and the Web. Nautilus delivers a dynamic and
@@ -127,6 +130,7 @@
 %patch8 -p1 -b .hide-white-screen
 %patch9 -p0 -b .fix-autorun
 %patch10 -p0 -b .gvfs-desktop-key
+%patch11 -p1 -b .fix-open-folder
 
 %build
 
@@ -237,6 +241,9 @@
 %{_libdir}/*.so
 
 %changelog
+* Thu Apr 17 2008 Matthias Clasen <mclasen at redhat.com> - 2.22.2-5
+- Make "Open Folder" work as expected for media handling
+
 * Thu Apr 17 2008 David Zeuthen <davidz at redhat.com> - 2.22.2-4
 - Put X-Gnome-Vfs-System=gio into desktop files (See #442835)
 




More information about the scm-commits mailing list