diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-02-09 16:49:11 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-02-09 16:49:11 +0000 |
commit | dc347650e93cb98143da4d9fc013b7497059a35a (patch) | |
tree | cc6c926f84f105eebb1a00a8aa93ab59f2938ae9 /gtk/gtkmenushell.c | |
parent | 9a4990ddf554077b05167b4a30c338f4556778eb (diff) | |
download | gtk+-dc347650e93cb98143da4d9fc013b7497059a35a.tar.gz |
Fix RTL keynav for going from menubar to menu.
2005-02-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Fix RTL
keynav for going from menubar to menu.
Diffstat (limited to 'gtk/gtkmenushell.c')
-rw-r--r-- | gtk/gtkmenushell.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 2618cc4839..1c910476c2 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -1097,10 +1097,12 @@ gtk_real_menu_shell_move_current (GtkMenuShell *menu_shell, switch (direction) { case GTK_MENU_DIR_PARENT: - direction = GTK_MENU_DIR_CHILD; + if (GTK_MENU_SHELL_GET_CLASS (menu_shell)->submenu_placement != GTK_TOP_BOTTOM) + direction = GTK_MENU_DIR_CHILD; break; case GTK_MENU_DIR_CHILD: - direction = GTK_MENU_DIR_PARENT; + if (GTK_MENU_SHELL_GET_CLASS (menu_shell)->submenu_placement != GTK_TOP_BOTTOM) + direction = GTK_MENU_DIR_PARENT; break; case GTK_MENU_DIR_PREV: if (GTK_MENU_SHELL_GET_CLASS (menu_shell)->submenu_placement == GTK_TOP_BOTTOM) |