Accelerator Maps
Accelerator Maps — Loadable keyboard accelerator specs Description
GtkAccelMap
typedef struct _GtkAccelMap GtkAccelMap;
GtkAccelMapForeach ()
void (*GtkAccelMapForeach) (gpointer data,
Office Professional Plus 2010, 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,
Windows 7 Professional, guint accel_key, GdkModifierType accel_mods);
Registers a brand new accelerator with the world wide accelerator map.
This function should certainly only be referred to as when per accel_path
with all the canonical accel_key and accel_mods for this path.
To change the accelerator for the duration of runtime programatically, use
gtk_accel_map_change_entry().
The accelerator path ought to consist of "<WINDOWTYPE>Category1Category2...Action",
Windows 7 Activation,
where <WINDOWTYPE> will need to be a unique application-specific identifier,
Office 2007, 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, i.e. for accelerators on menu items, choose the item's menu route,
Microsoft Office 2010 Key,
e.g. "FileSave As", "ImageViewZoom" or "EditSelect All".
So a full valid accelerator route might 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().