[gwget] Get first file of the list



commit 5bb5e9214057c5599e63bacf10b9cc128f32f08e
Author: David Sedeño <david alderia com>
Date:   Sat Jul 4 17:48:35 2009 +0200

    Get first file of the list

 src/main_window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/main_window.c b/src/main_window.c
index bacc980..7b19bfa 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -549,7 +549,7 @@ on_gwget_drag_received (GtkWidget * widget, GdkDragContext * context, int x,
 		  files = g_list_prepend (files, uris[i]);
 		}
 		g_strfreev (uris); 
-		file = files->data;
+		file = g_list_first(files)->data;
 		drop_ok = TRUE;
 	} else if (dnd_type==TARGET_NETSCAPE_URL) {
 		file=((gchar *) (seldata->data));



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