diff options
author | Matthias Clasen <mclasen@redhat.com> | 2009-12-20 03:04:52 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-12-20 03:11:05 -0500 |
commit | c59f76fda2560273d7ee3255db9b697a7077ac38 (patch) | |
tree | 49c8796ebfd5eea5a25edf4d52cd6190722e87b9 /gtk/gtkmenubar.c | |
parent | af268d5b072b062fbc0325fe31e441e38700a21c (diff) | |
download | gtk+-c59f76fda2560273d7ee3255db9b697a7077ac38.tar.gz |
Only show the mnemonic underline when pressing Alt
...and show them in menus when navigating the menu with the keyboard.
This is similar to what other platforms do, and reduces visual clutter.
There is a setting to control this. Most of the work on this patch was
done by Thomas Wood. See bug 588554.
Diffstat (limited to 'gtk/gtkmenubar.c')
-rw-r--r-- | gtk/gtkmenubar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkmenubar.c b/gtk/gtkmenubar.c index a54e456d1b..3d2bbb513c 100644 --- a/gtk/gtkmenubar.c +++ b/gtk/gtkmenubar.c @@ -625,6 +625,7 @@ window_key_press_handler (GtkWidget *widget, { GtkMenuShell *menu_shell = GTK_MENU_SHELL (menubars->data); + _gtk_menu_shell_set_keyboard_mode (menu_shell, TRUE); _gtk_menu_shell_activate (menu_shell); gtk_menu_shell_select_first (menu_shell, FALSE); |