mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
gtkmenushell: Fix an endless loop on focus cycle
This is a simple fallout from sealing gtkmenushell, which only appears when F10 or Shift-F10 is used in a submenu. https://bugzilla.gnome.org/show_bug.cgi?id=690266
This commit is contained in:
parent
ebf9b9a0e7
commit
531d0dc32a
@ -1727,8 +1727,8 @@ gtk_real_menu_shell_cycle_focus (GtkMenuShell *menu_shell,
|
|||||||
|
|
||||||
while (menu_shell && !GTK_IS_MENU_BAR (menu_shell))
|
while (menu_shell && !GTK_IS_MENU_BAR (menu_shell))
|
||||||
{
|
{
|
||||||
if (priv->parent_menu_shell)
|
if (menu_shell->priv->parent_menu_shell)
|
||||||
menu_shell = GTK_MENU_SHELL (priv->parent_menu_shell);
|
menu_shell = GTK_MENU_SHELL (menu_shell->priv->parent_menu_shell);
|
||||||
else
|
else
|
||||||
menu_shell = NULL;
|
menu_shell = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user