Accelerator Maps
Accelerator Maps — Loadable keyboard accelerator specifications Description
GtkAccelMap
typedef struct _GtkAccelMap GtkAccelMap;
GtkAccelMapForeach ()
void (*GtkAccelMapForeach) (gpointer info, const gchar *accel_path, guint accel_key, GdkModifierType accel_mods, gboolean modified);
gtk_accel_map_add_entry ()
void gtk_accel_map_add_entry (const gchar *accel_path,
Office 2007, guint accel_key, GdkModifierType accel_mods);
Registers a whole new accelerator with the world wide accelerator map.
This perform really should only be called once per accel_path
along with the canonical accel_key and accel_mods for this path.
To vary the accelerator for the duration of runtime programatically, use
gtk_accel_map_change_entry().
The accelerator path should consist of "<WINDOWTYPE>Category1Category2...Action",
Office 2007 Professional Key,
where <WINDOWTYPE> must be a unique application-specific identifier,
Windows 7 Enterprise Product Key, 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,
Windows 7 Professional Product Key, i.e. for accelerators on menu items,
Windows 7 Home Basic Product Key, choose the item's menu path,
e.g. "FileSave As", "ImageViewZoom" or "EditSelect All".
So a full valid accelerator route could 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().