summaryrefslogtreecommitdiff
path: root/gtk/gtkmenushell.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2009-12-20 03:04:52 -0500
committerMatthias Clasen <mclasen@redhat.com>2009-12-20 03:11:05 -0500
commitc59f76fda2560273d7ee3255db9b697a7077ac38 (patch)
tree49c8796ebfd5eea5a25edf4d52cd6190722e87b9 /gtk/gtkmenushell.h
parentaf268d5b072b062fbc0325fe31e441e38700a21c (diff)
downloadgtk+-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/gtkmenushell.h')
-rw-r--r--gtk/gtkmenushell.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkmenushell.h b/gtk/gtkmenushell.h
index e8281bcbb4..614d3975f2 100644
--- a/gtk/gtkmenushell.h
+++ b/gtk/gtkmenushell.h
@@ -65,6 +65,7 @@ struct _GtkMenuShell
guint GSEAL (ignore_leave) : 1; /* unused */
guint GSEAL (menu_flag) : 1; /* unused */
guint GSEAL (ignore_enter) : 1;
+ guint GSEAL (keyboard_mode) : 1;
};
struct _GtkMenuShellClass
@@ -130,6 +131,11 @@ gboolean gtk_menu_shell_get_take_focus (GtkMenuShell *menu_shell);
void gtk_menu_shell_set_take_focus (GtkMenuShell *menu_shell,
gboolean take_focus);
+void _gtk_menu_shell_update_mnemonics (GtkMenuShell *menu_shell);
+void _gtk_menu_shell_set_keyboard_mode (GtkMenuShell *menu_shell,
+ gboolean keyboard_mode);
+gboolean _gtk_menu_shell_get_keyboard_mode (GtkMenuShell *menu_shell);
+
G_END_DECLS
#endif /* __GTK_MENU_SHELL_H__ */