Accelerator Maps
Accelerator Maps — Loadable keyboard accelerator specs Description
GtkAccelMap
typedef struct _GtkAccelMap GtkAccelMap;
GtkAccelMapForeach ()
void (*GtkAccelMapForeach) (gpointer information,
Microsoft Office 2007 Product Key, const gchar *accel_path, guint accel_key, GdkModifierType accel_mods, gboolean altered);
gtk_accel_map_add_entry ()
void gtk_accel_map_add_entry (const gchar *accel_path,
Office 2007 Standard Key, guint accel_key,
Office 2010 Standard Key, GdkModifierType accel_mods);
Registers a brand new accelerator together with the world-wide accelerator map.
This operate should really only be termed the moment per accel_path
using the canonical accel_key and accel_mods for this path.
To vary the accelerator during runtime programatically,
Office Pro 2007 Key, use
gtk_accel_map_change_entry().
The accelerator path have got to include "<WINDOWTYPE>Category1Category2...Action",
where <WINDOWTYPE> should really be a unique application-specific identifier, that
corresponds to the kind of window the accelerator is being used in, e.g. "Gimp-Image",
"Abiword-Document" or "Gnumeric-Settings".
The Category1...Action portion is most appropriately chosen by the action the
accelerator triggers,
Office Standard 2007 Key, i.e. for accelerators on menu items, choose the item's menu route,
e.g. "FileSave As", "ImageViewZoom" or "EditSelect All".
So a full valid accelerator path might possibly look like:
"<Gimp-Toolbox>FileDialogsTool Options...".
Note that accel_path string will be stored in a GQuark. Therefore, if you
pass a static string, you can save some memory by interning it first with g_intern_static_string().