[Nautilus-list] [PATCH] fix drag and drop to side pane





Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.5176
diff -p -u -r1.5176 ChangeLog
--- ChangeLog	4 Apr 2002 11:35:30 -0000	1.5176
+++ ChangeLog	5 Apr 2002 08:13:47 -0000
@@ -1,3 +1,21 @@
+2002-03-30  David Emory Watson  <dwatson cs ucr edu>
+
+	* src/nautilus-sidebar.c:
+	(receive_dropped_uri_list): now g_strsplit returns an additional empty
+	string when a delimiter is present at the end of the parameter string.
+
 2002-03-30  David Emory Watson  <dwatson cs ucr edu>

	This fixes single click activation, bug 76197.
Index: ./src/nautilus-sidebar.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-sidebar.c,v
retrieving revision 1.209
diff -p -u -r1.209 nautilus-sidebar.c
--- ./src/nautilus-sidebar.c	7 Mar 2002 19:36:07 -0000	1.209
+++ ./src/nautilus-sidebar.c	5 Apr 2002 08:13:51 -0000
@@ -718,7 +718,7 @@ receive_dropped_uri_list (NautilusSideba
 	GtkWindow *window;
 	
 	uris = g_strsplit (selection_data->data, "\r\n", 0);
-	exactly_one = uris[0] != NULL && uris[1] == NULL;
+	exactly_one = uris[0] != NULL && (uris[1] == NULL || strlen (uris[1]) == 0);
 	window = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (sidebar)));
 	
 	switch (hit_test (sidebar, x, y)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]