diff options
author | Javier Jardón <jjardon@gnome.org> | 2009-10-14 04:09:48 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-10-15 03:11:39 +0200 |
commit | ff76366652e455d19f9766966a186ff5f396bea2 (patch) | |
tree | b6d2a6cea77c3e161f80e26861c77f81d4938254 /gtk/gtkaccelgroup.c | |
parent | 7fd79f42ab7f5ab19df4033309ecdcc113c7f32b (diff) | |
download | gtk+-ff76366652e455d19f9766966a186ff5f396bea2.tar.gz |
Move documentation from templates to inline comments: GtkAccelGroup
https://bugzilla.gnome.org/show_bug.cgi?id=597865
Diffstat (limited to 'gtk/gtkaccelgroup.c')
-rw-r--r-- | gtk/gtkaccelgroup.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c index b26fd63a05..03ade12668 100644 --- a/gtk/gtkaccelgroup.c +++ b/gtk/gtkaccelgroup.c @@ -37,6 +37,31 @@ #include "gtkmarshalers.h" #include "gtkalias.h" +/** + * SECTION:gtkaccelgroup + * @Short_description: Groups of global keyboard accelerators for an entire GtkWindow + * @Title: Accelerator Groups + * @See_also:gtk_window_add_accel_group(), gtk_accel_map_change_entry(), + * gtk_item_factory_new(), gtk_label_new_with_mnemonic() + * + * 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 in the item + * factory's #GtkAccelGroup. + * + * + * 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. + */ + /* --- prototypes --- */ static void gtk_accel_group_finalize (GObject *object); |