[gtk+/gtk-3-0] gtkmenushell: Fix an endless loop on focus cycle



commit cd92b95b68845884633a702c92ff78b5ae38ad15
Author: StÃphane DÃmurget <stephane demurget free fr>
Date:   Sat Dec 15 17:21:12 2012 +0100

    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

 gtk/gtkmenushell.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c
index 548bcaa..49babdd 100644
--- a/gtk/gtkmenushell.c
+++ b/gtk/gtkmenushell.c
@@ -1728,8 +1728,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;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]