[evolution-patches] [gtkhtml] #59893 DnD Link From Browser to Composer Window Doesn't Copy Link




Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.2027
diff -u -p -r1.2027 ChangeLog
--- ChangeLog	29 Jul 2004 13:25:27 -0000	1.2027
+++ ChangeLog	3 Aug 2004 13:55:11 -0000
@@ -1,3 +1,17 @@
+2004-08-03  Radek Doulik  <rodo ximian com>
+
+	* gtkhtml.c (drag_data_received): do not use title from
+	MOZILLA_URL in plaintext mode unless dnd context action >
+	GDK_ACTION_COPY. this means that we paste url in plain text or
+	title similar as in html mode if you press Shift or Meta Shift
+
+	Fixes #59893
+
 2004-07-28  Radek Doulik  <rodo ximian com>
 
 	* htmlengine.c: ref embedded widget when pushing it to the
Index: gtkhtml.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/gtkhtml.c,v
retrieving revision 1.573
diff -u -p -r1.573 gtkhtml.c
--- gtkhtml.c	22 Jul 2004 17:58:55 -0000	1.573
+++ gtkhtml.c	3 Aug 2004 13:55:13 -0000
@@ -2543,7 +2543,8 @@ drag_data_received (GtkWidget *widget, G
 		}
 
 		html_undo_level_begin (engine->undo, "Dropped URI(s)", "Remove Dropped URI(s)");
-		obj = new_obj_from_uri (engine, utf8, title, -1);
+
+		obj = new_obj_from_uri (engine, utf8, (HTML_IS_PLAIN_PAINTER (engine->painter) && context->action <= GDK_ACTION_COPY) ? utf8 : title, -1);
 		if (obj) {
 			html_engine_paste_object (engine, obj, html_object_get_length (obj));
 			pasted = TRUE;


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