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:
Stéphane Démurget 2012-12-15 17:21:12 +01:00
parent ebf9b9a0e7
commit 531d0dc32a

View File

@ -1727,8 +1727,8 @@ gtk_real_menu_shell_cycle_focus (GtkMenuShell *menu_shell,
while (menu_shell && !GTK_IS_MENU_BAR (menu_shell))
{
if (priv->parent_menu_shell)
menu_shell = GTK_MENU_SHELL (priv->parent_menu_shell);
if (menu_shell->priv->parent_menu_shell)
menu_shell = GTK_MENU_SHELL (menu_shell->priv->parent_menu_shell);
else
menu_shell = NULL;
}