From de5b206ef73db4f87f19ae4e5b943c28334425a8 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 14 Feb 2002 01:30:36 +0000 Subject: added a kludge around a Nautilus bug that calls drag_data_get multiple times witht he same drag. svn path=/trunk/; revision=15722 --- mail/mail-display.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mail/mail-display.c') 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"); -- cgit