diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-02-14 09:30:36 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-02-14 09:30:36 +0800 |
commit | de5b206ef73db4f87f19ae4e5b943c28334425a8 (patch) | |
tree | 973381fb575259dc01286248b196b34241dcf014 /mail/mail-display.c | |
parent | 05014ce820886abed0cf75bb5a0b6cf63c91735b (diff) | |
download | gsoc2013-evolution-de5b206ef73db4f87f19ae4e5b943c28334425a8.tar.gz gsoc2013-evolution-de5b206ef73db4f87f19ae4e5b943c28334425a8.tar.zst gsoc2013-evolution-de5b206ef73db4f87f19ae4e5b943c28334425a8.zip |
added a kludge around a Nautilus bug that calls drag_data_get multiple times witht he same drag.
svn path=/trunk/; revision=15722
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index 7d7520d1e0..580cde5183 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -800,6 +800,14 @@ drag_data_get_cb (GtkWidget *widget, switch (info) { case DND_TARGET_TYPE_TEXT_URI_LIST: + /* Kludge around Nautilus requesting the same data many times */ + uri_list = gtk_object_get_data (GTK_OBJECT (widget), "uri-list"); + if (uri_list) { + gtk_selection_data_set (selection_data, selection_data->target, 8, + uri_list, strlen (uri_list)); + return; + } + tmpdir = e_mkdtemp ("drag-n-drop-XXXXXX"); if (!tmpdir) { char *msg; @@ -837,7 +845,6 @@ drag_data_delete_cb (GtkWidget *widget, GdkDragContext *drag_context, gpointer user_data) { - CamelMimePart *part = user_data; char *uri_list; uri_list = gtk_object_get_data (GTK_OBJECT (widget), "uri-list"); |