From 1873dfe631b7cdad898a7dc4b3b0be6120eea07a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 9 Jun 2009 01:11:42 +0200 Subject: [PATCH] Popup Extensions menu on button release, not press Although menus should open on button press, we have to use release if we want the treeview selection to be correct. --- panels/midori-extensions.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/panels/midori-extensions.c b/panels/midori-extensions.c index 40c5b3dd..87bd2d88 100644 --- a/panels/midori-extensions.c +++ b/panels/midori-extensions.c @@ -398,9 +398,9 @@ midori_extensions_popup_menu_cb (GtkWidget* widget, } static gboolean -midori_extensions_button_press_event_cb (GtkWidget* widget, - GdkEventButton* event, - MidoriExtensions* extensions) +midori_extensions_button_release_event_cb (GtkWidget* widget, + GdkEventButton* event, + MidoriExtensions* extensions) { GtkTreeModel* model; GtkTreeIter iter; @@ -474,8 +474,8 @@ midori_extensions_init (MidoriExtensions* extensions) g_object_connect (extensions->treeview, "signal::row-activated", midori_extensions_treeview_row_activated_cb, extensions, - "signal::button-press-event", - midori_extensions_button_press_event_cb, extensions, + "signal::button-release-event", + midori_extensions_button_release_event_cb, extensions, "signal::popup-menu", midori_extensions_popup_menu_cb, extensions, NULL); -- 2.39.5