rpms/nautilus/devel nautilus-2.26.1-dnd-not-recurse.patch, NONE, 1.1 nautilus.spec, 1.268, 1.269

Tomas Bzatek tbzatek at fedoraproject.org
Mon Apr 6 13:09:24 UTC 2009


Author: tbzatek

Update of /cvs/extras/rpms/nautilus/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv21896

Modified Files:
	nautilus.spec 
Added Files:
	nautilus-2.26.1-dnd-not-recurse.patch 
Log Message:
* Mon Apr  6 2009 Tomas Bzatek <tbzatek at redhat.com> - 2.26.1-2
- Fix dragging files via NFS moves instead of copy (#456515)


nautilus-2.26.1-dnd-not-recurse.patch:

--- NEW FILE nautilus-2.26.1-dnd-not-recurse.patch ---
Index: libnautilus-private/nautilus-dnd.c
===================================================================
--- libnautilus-private/nautilus-dnd.c	(revision 15162)
+++ libnautilus-private/nautilus-dnd.c	(revision 15163)
@@ -437,7 +437,7 @@
 	gboolean target_is_source_parent;
 	gboolean source_deletable;
 	const char *dropped_uri;
-	GFile *target, *dropped;
+	GFile *target, *dropped, *dropped_directory;
 	GdkDragAction actions;
 	NautilusFile *dropped_file, *target_file;
 
@@ -519,7 +519,16 @@
 	
 	/* Compare the first dropped uri with the target uri for same fs match. */
 	dropped = g_file_new_for_uri (dropped_uri);
-	target_is_source_parent = g_file_has_prefix (dropped, target);
+	dropped_directory = g_file_get_parent (dropped);
+	target_is_source_parent = FALSE;
+	if (dropped_directory != NULL) {
+		/* If the dropped file is already in the same directory but
+		   is in another filesystem we still want to move, not copy
+		   as this is then just a move of a mountpoint to another
+		   position in the dir */
+		target_is_source_parent = g_file_equal (dropped_directory, target);
+		g_object_unref (dropped_directory);
+	}
 	source_deletable = source_is_deletable (dropped);
 
 	if ((same_fs && source_deletable) || target_is_source_parent ||


Index: nautilus.spec
===================================================================
RCS file: /cvs/extras/rpms/nautilus/devel/nautilus.spec,v
retrieving revision 1.268
retrieving revision 1.269
diff -u -r1.268 -r1.269
--- nautilus.spec	3 Apr 2009 03:03:38 -0000	1.268
+++ nautilus.spec	6 Apr 2009 13:08:54 -0000	1.269
@@ -16,7 +16,7 @@
 Name:		nautilus
 Summary:        File manager for GNOME
 Version: 	2.26.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 License: 	GPLv2+
 Group:          User Interface/Desktops
 Source: 	http://download.gnome.org/sources/%{name}/2.26/%{name}-%{version}.tar.bz2
@@ -87,6 +87,10 @@
 # http://bugzilla.gnome.org/show_bug.cgi?id=519743
 Patch17:	nautilus-filetype-symlink-fix.patch
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=456515
+# Dragging Files via NFS share moves instead of copy
+Patch18:	nautilus-2.26.1-dnd-not-recurse.patch
+
 
 %description
 Nautilus is the file manager and graphical shell for the GNOME desktop
@@ -125,6 +129,7 @@
 # %patch8 -p1 -b .hide-white-screen
 %patch10 -p1 -b .gvfs-desktop-key
 %patch17 -p0 -b .symlink
+%patch18 -p0 -b .dnd-recurse
 
 %build
 
@@ -262,6 +267,9 @@
 
 
 %changelog
+* Mon Apr  6 2009 Tomas Bzatek <tbzatek at redhat.com> - 2.26.1-2
+- Fix dragging files via NFS moves instead of copy (#456515)
+
 * Thu Apr  2 2009 Tomas Bzatek <tbzatek at redhat.com> - 2.26.1-1
 - Update to 2.26.1
 




More information about the scm-commits mailing list