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 transformed);
gtk_accel_map_add_entry ()
void gtk_accel_map_add_entry (const gchar *accel_path, guint accel_key, GdkModifierType accel_mods);
Registers a fresh accelerator with all the world wide accelerator map.
This perform should only be called when per accel_path
along with the canonical accel_key and accel_mods for this path.
To change the accelerator all through runtime programatically, use
gtk_accel_map_change_entry().
The accelerator path needs to include "<WINDOWTYPE>Category1Category2...Action",
where <WINDOWTYPE> may want to be a unique application-specific identifier, that
corresponds to the kind of window the accelerator is being used in,
Windows 7 Product Key, e.g. "Gimp-Image",
Office 2010 Standard Key,
"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,
Windows 7 64 Bit, choose the item's menu route,
e.g. "FileSave As", "ImageViewZoom" or "EditSelect All".
So a full valid accelerator path may perhaps look like:
"<Gimp-Toolbox>FileDialogsTool Options...".
Note that accel_path string will be stored in a GQuark. Therefore,
Office Enterprise 2007, if you
pass a static string,
Microsoft Office Pro Plus, you can save some memory by interning it first with g_intern_static_string().