[gtkhtml] Bug #461203 - Do not select text on drop abort



commit cd414649da103fd1fc898d943740dda4a11e6033
Author: Milan Crha <mcrha redhat com>
Date:   Tue Mar 30 22:07:04 2010 +0200

    Bug #461203 - Do not select text on drop abort

 gtkhtml/gtkhtml.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkhtml/gtkhtml.c b/gtkhtml/gtkhtml.c
index 17a8692..5771b3c 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -2049,7 +2049,7 @@ button_release_event (GtkWidget *initial_widget,
 
 	engine =  html->engine;
 
-	if (html->in_selection) {
+	if (html->in_selection && !html->priv->dnd_in_progress) {
 		html_engine_update_selection_active_state (html->engine, html->priv->event_time);
 		if (html->in_selection_drag)
 			html_engine_select_region (engine, html->selection_x1, html->selection_y1,



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