[gwget] Fix drag'n'drop freeze.
- From: David Sedeño Fernández <davidsf src gnome org>
- To: svn-commits-list gnome org
- Subject: [gwget] Fix drag'n'drop freeze.
- Date: Sat, 4 Jul 2009 11:51:17 +0000 (UTC)
commit c84e5380662703d00f311592a302fdb355cd2ccd
Author: David Sedeño <david alderia com>
Date: Sat Jul 4 13:44:22 2009 +0200
Fix drag'n'drop freeze.
ChangeLog | 4 ++++
src/main_window.c | 7 +++----
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 94fac0a..d6e9851 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-04 David Sedeño <david alderia com>
+
+ * src/main_window.c: Fix drag'n'drop freeze.
+
2009-06-30 David Sedeño <david alderia com>
* data/gwget.ui: Set button size to menu. Fixes #527818
diff --git a/src/main_window.c b/src/main_window.c
index afefa66..46e1f10 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -530,11 +530,11 @@ on_gwget_drag_received (GtkWidget * widget, GdkDragContext * context, int x,
guint time, gpointer data)
{
gchar *file;
- gchar *uri;
gchar **uris;
GList *files = NULL;
GwgetData *gwgetdata;
gboolean drop_ok;
+ int i;
g_return_if_fail(gwget_pref.download_dir != NULL);
@@ -543,8 +543,8 @@ on_gwget_drag_received (GtkWidget * widget, GdkDragContext * context, int x,
drop_ok = FALSE;
if (dnd_type==TARGET_URI_LIST) {
uris = g_uri_list_extract_uris ((gchar *)seldata->data);
- for (uri=uris[0]; uri != NULL; uri++) {
- files = g_list_prepend (files, uri);
+ for (i=0; uris[i] != NULL; i++) {
+ files = g_list_prepend (files, uris[i]);
}
g_strfreev (uris);
file = files->data;
@@ -568,7 +568,6 @@ on_gwget_drag_received (GtkWidget * widget, GdkDragContext * context, int x,
}
gtk_drag_finish(context, TRUE, FALSE, time);
}
-
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]