[evolution-patches] #61206 Drag and Drop of link is pasted as text.



hi guys, please take a while to help review this patch.
the patch is for trunk. about dnd a mozilla link to the mail editor.

I think to deal with this bug, we can just perform the same as copy and paste when we dnd a link.

regards
bill

Index: gtkhtml.c
===================================================================
RCS file: /export/src/cvs/gtkhtml/src/gtkhtml.c,v
retrieving revision 1.11
diff -u -r1.11 gtkhtml.c
--- gtkhtml.c	2004/06/08 23:34:24	1.11
+++ gtkhtml.c	2004/07/05 12:01:46
@@ -2338,6 +2338,12 @@
 		pasted = TRUE;
 		break;
 	case DND_TARGET_TYPE_MOZILLA_URL  : {
+		if (GTK_IS_HTML (widget)) {
+			GtkHTML *html = GTK_HTML (widget);
+			gtk_html_request_paste (html, selection_data->selection, 0, gtk_get_current_event_time (),FALSE);
+			break;
+		}
+
 		HTMLObject *obj;
 		gchar *utf8;
 		int i;
@@ -2372,8 +2378,8 @@
 		}
 		html_undo_level_end (engine->undo);
 		g_free (utf8);
+		break;
 	}
-	break;
 
 	case DND_TARGET_TYPE_TEXT_URI_LIST: {
 		HTMLObject *obj;


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