mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
Make menu scrolling work with auto mnemonics
The menu scrolling code is not robust against menu repositioning so we have avoid causing unnecessary recalculations of labels in parent menuitems.
This commit is contained in:
parent
3a65f554c5
commit
6ad8909e3c
@ -1168,7 +1168,11 @@ gtk_menu_shell_real_select_item (GtkMenuShell *menu_shell,
|
||||
{
|
||||
GtkPackDirection pack_dir = PACK_DIRECTION (menu_shell);
|
||||
|
||||
gtk_menu_shell_deselect (menu_shell);
|
||||
if (menu_shell->active_menu_item)
|
||||
{
|
||||
gtk_menu_item_deselect (GTK_MENU_ITEM (menu_shell->active_menu_item));
|
||||
menu_shell->active_menu_item = NULL;
|
||||
}
|
||||
|
||||
if (!_gtk_menu_item_is_selectable (menu_item))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user