AccelMap.lockPath

Locks the given accelerator path. If the accelerator map doesn’t yet contain an entry for accel_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 AccelMap.unlockPath. Refer to AccelMap.changeEntry for information about runtime accelerator changes.

If called more than once, accel_path remains locked until AccelMap.unlockPath has been called an equivalent number of times.

Note that locking of individual accelerator paths is independent from locking the gtk.AccelGroup containing them. For runtime accelerator changes to be possible, both the accelerator path and its gtk.AccelGroup have to be unlocked.

class AccelMap
static
void
lockPath
(
string accelPath
)

Parameters

accelPath string

a valid accelerator path

Meta