[gtk+/gtk-2-24] Enter submenus when activating their parent item
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] Enter submenus when activating their parent item
- Date: Fri, 6 Oct 2017 00:44:17 +0000 (UTC)
commit 687e4576eb66e88eca04a80ca0998775c38ec6b8
Author: Colomban Wendling <cwendling hypra fr>
Date: Thu Feb 16 17:36:17 2017 +0100
Enter submenus when activating their parent item
This gives consistent behavior with e.g. Qt, Mozilla's suites and
LibreOffice (with non-truly native backends like "gen" and "gtk",
but unlike "gtk2" and "gtk3" ones that probably use true GTK menus).
This behavior is expected by at least some accessibility users, and
it seems good to behave like other common applications and toolkits
in this area. There should be no issue in doing so either for current
users, as it only enters the submenu instead of not doing anything.
https://bugzilla.gnome.org/show_bug.cgi?id=778811
gtk/gtkmenushell.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c
index 48de6a8..81df2ec 100644
--- a/gtk/gtkmenushell.c
+++ b/gtk/gtkmenushell.c
@@ -1580,7 +1580,7 @@ gtk_real_menu_shell_activate_current (GtkMenuShell *menu_shell,
menu_shell->active_menu_item,
force_hide);
else
- _gtk_menu_item_popup_submenu (menu_shell->active_menu_item, FALSE);
+ gtk_menu_shell_select_submenu_first (menu_shell);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]