now g_strsplit returns an additional empty string when a delimiter is

2002-04-05  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.
This commit is contained in:
David Emory Watson 2002-04-05 15:34:45 +00:00 committed by David Emory Watson
parent 6046985f69
commit c2a199be3c
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2002-04-05 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-04-05 Darin Adler <darin@bentspoon.com>
* libnautilus-private/nautilus-metafile.c:
@ -187,12 +193,12 @@
* configure.in: Check for and include X libraries explicitly.
2002-03-28 Dave Emory Watson <dwatson@cs.ucr.edu>
2002-03-28 David Emory Watson <dwatson@cs.ucr.edu>
* libnautilus-private/nautilus-link.h: Changed the comment for
nautilus_link_local_is_special_link to be more clear.
2002-03-27 Dave Emory Watson <dwatson@cs.ucr.edu>
2002-03-27 David Emory Watson <dwatson@cs.ucr.edu>
* libnautilus-private/nautilus-link.c,
libnautilus-private/nautilus-link.h:

View file

@ -718,7 +718,7 @@ receive_dropped_uri_list (NautilusSidebar *sidebar,
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 || uris[1][0] == '\0');
window = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (sidebar)));
switch (hit_test (sidebar, x, y)) {

View file

@ -718,7 +718,7 @@ receive_dropped_uri_list (NautilusSidebar *sidebar,
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 || uris[1][0] == '\0');
window = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (sidebar)));
switch (hit_test (sidebar, x, y)) {