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.
This commit is contained in:
parent
9f89df5358
commit
1873dfe631
1 changed files with 5 additions and 5 deletions
|
@ -398,7 +398,7 @@ midori_extensions_popup_menu_cb (GtkWidget* widget,
|
|||
}
|
||||
|
||||
static gboolean
|
||||
midori_extensions_button_press_event_cb (GtkWidget* widget,
|
||||
midori_extensions_button_release_event_cb (GtkWidget* widget,
|
||||
GdkEventButton* event,
|
||||
MidoriExtensions* extensions)
|
||||
{
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue