Fix for bug 324103 [gtkhtml]

Rohini <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>
Hi

Attached fix for Bug 324103 – GtkHTML should not start drag selection,
when dragging urls

Please Review.

Thanks,
Rohini

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
bug324103.diff (text/x-patch, 1 KB)
Index: gtkhtml.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/gtkhtml.c,v
retrieving revision 1.617
diff -u -p -r1.617 gtkhtml.c
--- gtkhtml.c	1 Mar 2006 06:04:01 -0000	1.617
+++ gtkhtml.c	8 Mar 2006 06:36:24 -0000
@@ -2467,6 +2467,7 @@ drag_end (GtkWidget *widget, GdkDragCont
 {
 	/* printf ("drag_end\n"); */
 	GTK_HTML (widget)->priv->dnd_in_progress = FALSE;
+	html_engine_unselect_all (GTK_HTML (widget)->engine);
 }
 
 static void
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.2170
diff -u -p -r1.2170 ChangeLog
--- ChangeLog	1 Mar 2006 06:04:01 -0000	1.2170
+++ ChangeLog	8 Mar 2006 06:36:48 -0000
@@ -1,3 +1,9 @@
+2006-03-08  Rohini S  <[email protected]>
+
+	* gtkhtml.c (drag_end): Deselect text after DnD ends.
+
+	Fixes bug #324103
+
 2006-03-01  Srinivasa Ragavan  <[email protected]>
 
 	* gtkhtml.c: (setup_class_properties), (next_uri),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.