From: Christian Dywan Date: Mon, 8 Jun 2009 23:11:42 +0000 (+0200) Subject: Popup Extensions menu on button release, not press X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1873dfe631b7cdad898a7dc4b3b0be6120eea07a;p=midori 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. --- 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);