Package: gtk

Function gtk:accel-map-lock-path

Lambda List

gtk:accel-map-lock-path (path)

Arguments

path -- a string with the valid accelerator path

Details

Locks the given accelerator path. If the accelerator map does not yet contain an entry for path, a new one is created.

Locking an accelerator path prevents its accelerator from being changed during runtime. A locked accelerator path can be unlocked by the gtk:accel-map-unlock-path function. Refer to the gtk:accel-map-change-entry function for information about runtime accelerator changes.

If called more than once, path remains locked until the gtk:accel-map-unlock-path function has been called an equivalent number of times.

Note that locking of individual accelerator paths is independent from locking the gtk:accel-group object containing them. For runtime accelerator changes to be possible both the accelerator path and its gtk:accel-group object have to be unlocked.
 

See also

#2023-3-6