mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
menushell: Listen to non-primary button clicks
Menus should also be deactivated on right-button clicks.
This commit is contained in:
parent
3ce45508e1
commit
43ef4d7b53
@ -436,6 +436,7 @@ gtk_menu_shell_init (GtkMenuShell *menu_shell)
|
||||
gtk_widget_set_has_surface (widget, FALSE);
|
||||
|
||||
controller = GTK_EVENT_CONTROLLER (gtk_gesture_multi_press_new ());
|
||||
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (controller), 0);
|
||||
g_signal_connect (controller, "pressed",
|
||||
G_CALLBACK (multi_press_pressed), menu_shell);
|
||||
g_signal_connect (controller, "released",
|
||||
|
Loading…
Reference in New Issue
Block a user