Package: gtk
Class gtk:accel-map
Superclassesgobject: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 the gtk:ui-manager object 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 gtk:accel-map-get function. See Monitoring changes for additional details. Manipulating acceleratorsNew accelerators can be added using the gtk:accel-map-add-entry function. To search for a specific accelerator, use the gtk:accel-map-lookup-entry function. Modifications of existing accelerators should be done using the gtk:accel-map-change-entry function.In order to avoid having some accelerators changed, they can be locked using the gtk:accel-map-lock-path function. Unlocking is done using the gtk:accel-map-unlock-path function. Saving and loading accelerator mapsAccelerator maps can be saved to and loaded from some external resource. For simple saving and loading from file, the gtk:accel-map-save and gtk:accel-map-load functions 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 path key 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 |
2023-3-6