gtkhtml r9050 - branches/gnome-2-24/components/editor



Author: mbarnes
Date: Fri Nov 21 16:15:19 2008
New Revision: 9050
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9050&view=rev

Log:
2008-11-21  Matthew Barnes  <mbarnes redhat com>

	** Fixes Red Hat bug #472517

	* gtkhtml-editor.c (editor_button_press_event_cb):
	Always update the pop-up menu before showing it, whether we're
	clicking in a selection or not.



Modified:
   branches/gnome-2-24/components/editor/ChangeLog
   branches/gnome-2-24/components/editor/gtkhtml-editor.c

Modified: branches/gnome-2-24/components/editor/gtkhtml-editor.c
==============================================================================
--- branches/gnome-2-24/components/editor/gtkhtml-editor.c	(original)
+++ branches/gnome-2-24/components/editor/gtkhtml-editor.c	Fri Nov 21 16:15:19 2008
@@ -85,9 +85,10 @@
 	if (!in_selection) {
 		html_engine_disable_selection (html->engine);
 		html_engine_jump_at (html->engine, event->x, event->y);
-		gtkhtml_editor_update_context (editor);
 	}
 
+	gtkhtml_editor_update_context (editor);
+
 	gtk_menu_popup (
 		GTK_MENU (menu), NULL, NULL, NULL, NULL,
 		event->button, event->time);



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