1 <!-- ##### SECTION Title ##### -->
2 Keyboard Accelerator Groups
4 <!-- ##### SECTION Short_Description ##### -->
6 Groups of global keyboard accelerators for an entire #GtkWindow
8 <!-- ##### SECTION Long_Description ##### -->
9 <para id="GtkAccelGroup">
10 A #GtkAccelGroup represents a group of keyboard accelerators,
11 typically attached to a toplevel #GtkWindow (with
12 gtk_window_add_accel_group()). Usually you won't need to create a
13 #GtkAccelGroup directly; instead, when using #GtkItemFactory, GTK+
14 automatically sets up the accelerators for your menus in the item
15 factory's #GtkAccelGroup.
19 Note that <firstterm>accelerators</firstterm> are different from
20 <firstterm>mnemonics</firstterm>. Accelerators are shortcuts for
21 activating a menu item; they appear alongside the menu item they're a
22 shortcut for. For example "Ctrl+Q" might appear alongside the "Quit"
23 menu item. Mnemonics are shortcuts for GUI elements such as text
24 entries or buttons; they appear as underlined characters. See
25 gtk_label_new_with_mnemonic(). Menu items can have both accelerators
26 and mnemonics, of course.
29 <!-- ##### SECTION See_Also ##### -->
31 gtk_window_add_accel_group(), gtk_accel_map_change_entry(),
32 gtk_item_factory_new(), gtk_label_new_with_mnemonic()
35 <!-- ##### STRUCT GtkAccelGroup ##### -->
37 An object representing and maintaining a group of accelerators.
41 <!-- ##### FUNCTION gtk_accel_group_new ##### -->
49 <!-- ##### MACRO gtk_accel_group_ref ##### -->
51 Deprecated equivalent of g_object_ref().
57 <!-- ##### MACRO gtk_accel_group_unref ##### -->
59 Deprecated equivalent of g_object_unref().
64 <!-- ##### FUNCTION gtk_accel_group_connect ##### -->
74 <!-- # Unused Parameters # -->
79 <!-- ##### FUNCTION gtk_accel_group_connect_by_path ##### -->
89 <!-- ##### USER_FUNCTION GtkAccelGroupActivate ##### -->
101 <!-- ##### USER_FUNCTION GtkAccelGroupFindFunc ##### -->
112 <!-- ##### FUNCTION gtk_accel_group_disconnect ##### -->
120 <!-- # Unused Parameters # -->
125 <!-- ##### FUNCTION gtk_accel_group_disconnect_key ##### -->
136 <!-- ##### FUNCTION gtk_accel_group_query ##### -->
148 <!-- ##### FUNCTION gtk_accel_group_lock ##### -->
156 <!-- ##### FUNCTION gtk_accel_group_unlock ##### -->
164 <!-- ##### FUNCTION gtk_accel_group_from_accel_closure ##### -->
173 <!-- ##### FUNCTION gtk_accel_groups_activate ##### -->
182 <!-- # Unused Parameters # -->
186 <!-- ##### FUNCTION gtk_accel_groups_from_object ##### -->
195 <!-- ##### FUNCTION gtk_accel_group_find ##### -->
206 <!-- ##### STRUCT GtkAccelKey ##### -->
215 <!-- ##### FUNCTION gtk_accelerator_valid ##### -->
225 <!-- ##### FUNCTION gtk_accelerator_parse ##### -->
235 <!-- ##### FUNCTION gtk_accelerator_name ##### -->
245 <!-- ##### FUNCTION gtk_accelerator_set_default_mod_mask ##### -->
253 <!-- ##### FUNCTION gtk_accelerator_get_default_mod_mask ##### -->