Package: gtk
Class gtk-accel-map
Superclassesg-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slots
None
Details
Accelerator maps are used to define runtime configurable accelerators.
Functions for manipulating them are usually used by higher level convenience mechanisms like gtk-ui-manager and are thus considered "low-level".
You will want to use them if you are manually creating menus that should have
user-configurable accelerators. An accelerator is uniquely defined by:
All accelerators are stored inside one global gtk-accel-map object that can be obtained using the function gtk-accel-map-get. See Monitoring changes for additional details. Manipulating acceleratorsNew accelerators can be added using the function gtk-accel-map-add-entry. To search for a specific accelerator, use the function gtk-accel-map-lookup-entry. Modifications of existing accelerators should be done using the function gtk-accel-map-change-entry.In order to avoid having some accelerators changed, they can be locked using the function gtk-accel-map-lock-path. Unlocking is done using the function gtk-accel-map-unlock-path. Saving and loading accelerator mapsAccelerator maps can be saved to and loaded from some external resource. For simple saving and loading from file, the functions gtk-accel-map-save and gtk-accel-map-load are provided.Monitoring changesA gtk-accel-map object is only useful for monitoring changes of accelerators. By connecting to the "changed" signal, one can monitor changes of all accelerators. It is also possible to monitor only a single accelerator path by using it as a detail of the "changed" signal.Signal DetailsThe "changed" signallambda (object accel-path accel-key accel-mods) : Has DetailsNotifies of a change in the global accelerator map. The path is also used as the detail for the signal, so it is possible to connect to "changed::accel-path".
| Inherited Slot Access FunctionsSee also |
2020-9-20