1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Keyboard Accelerators
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
|
2001-09-08 04:39:53 +00:00
|
|
|
global keyboard accelerators (for an entire #GtkWindow)
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2001-09-08 20:40:58 +00:00
|
|
|
A #GtkAccelGroup represents a group of keyboard accelerators,
|
|
|
|
typically attached to a toplevel #GtkWindow (with
|
|
|
|
gtk_window_add_accel_group()). Usually you won't need to create a
|
|
|
|
#GtkAccelGroup directly; instead, when using #GtkItemFactory, GTK+
|
|
|
|
automatically sets up the accelerators for your menus.
|
2001-09-08 04:39:53 +00:00
|
|
|
</para>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2001-09-08 04:39:53 +00:00
|
|
|
<para>
|
|
|
|
Note that <firstterm>accelerators</firstterm> are different from
|
|
|
|
<firstterm>mnemonics</firstterm>. Accelerators are shortcuts for
|
|
|
|
activating a menu item; they appear alongside the menu item they're a
|
|
|
|
shortcut for, for example "Ctrl+Q" might appear alongside the "Quit"
|
|
|
|
menu item. Mnemonics are shortcuts for GUI elements such as text
|
|
|
|
entries or buttons; they appear as underlined characters. See
|
|
|
|
gtk_label_new_with_mnemonic(). Menu items can have both accelerators
|
|
|
|
and mnemonics, of course.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
gtk_label_new_with_mnemonic(), gtk_window_add_accel_group()
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GtkAccelGroup ##### -->
|
|
|
|
<para>
|
2001-09-08 04:39:53 +00:00
|
|
|
On opaque data type representing a group of accelerators.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accel_group_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accel_group_get_default ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accel_group_ref ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accel_group_unref ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accel_group_activate ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
|
|
|
@accel_key:
|
|
|
|
@accel_mods:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accel_groups_activate ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@object:
|
|
|
|
@accel_key:
|
|
|
|
@accel_mods:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2001-09-08 04:39:53 +00:00
|
|
|
<!-- ##### FUNCTION gtk_accel_group_attach ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
2001-09-08 04:39:53 +00:00
|
|
|
@object:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2001-09-08 04:39:53 +00:00
|
|
|
<!-- ##### FUNCTION gtk_accel_group_detach ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
2001-09-08 04:39:53 +00:00
|
|
|
@object:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accel_group_add ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
|
|
|
@accel_key:
|
|
|
|
@accel_mods:
|
|
|
|
@accel_flags:
|
|
|
|
@object:
|
|
|
|
@accel_signal:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accel_group_remove ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
|
|
|
@accel_key:
|
|
|
|
@accel_mods:
|
|
|
|
@object:
|
|
|
|
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
<!-- ##### FUNCTION gtk_accel_group_lock ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
|
|
|
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
<!-- ##### FUNCTION gtk_accel_group_unlock ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@accel_group:
|
|
|
|
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
<!-- ##### FUNCTION gtk_accelerator_valid ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
@keyval:
|
|
|
|
@modifiers:
|
1999-08-16 18:51:52 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
<!-- ##### FUNCTION gtk_accelerator_parse ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
@accelerator:
|
|
|
|
@accelerator_key:
|
|
|
|
@accelerator_mods:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
<!-- ##### FUNCTION gtk_accelerator_name ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
@accelerator_key:
|
|
|
|
@accelerator_mods:
|
1999-08-16 18:51:52 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2001-09-08 20:40:58 +00:00
|
|
|
<!-- ##### FUNCTION gtk_accelerator_set_default_mod_mask ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@default_mod_mask:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_accelerator_get_default_mod_mask ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|