Package: gtk

Accessor gtk-menu-item-accel-path

Lambda List

gtk-menu-item-accel-path (object)

Syntax

(gtk-menu-item-accel-path object) => path
(setf (gtk-menu-item-accel-path object) path)

Arguments

item -- a valid gtk-menu-item widget
path -- a string with the accelerator path, corresponding to this functionality of the menu item, or nil to unset the current path

Details

Accessor of the accel-path slot of the gtk-menu-item class.

The gtk-menu-item-accel-path slot access function retrieve the accelerator path that was previously set on the menu item. The (setf gtk-menu-item-accel-path) slot access function sets the accelerator path on the menu item, through which runtime changes of the accelerator of the menu item caused by the user can be identified and saved to persistent storage, see the gtk-accel-map-save function on this.

To set up a default accelerator for this menu item, call the gtk-accel-map-add-entry function with the same path. See also the gtk-accel-map-add-entry function on the specifics of accelerator paths, and the gtk-menu-accel-path function for a more convenient variant of this function.

This function is basically a convenience wrapper that handles calling the gtk-widget-set-accel-path function with the appropriate accelerator group for the menu item.

Note that you do need to set an accelerator on the parent menu with the gtk-menu-accel-group function for this to work.
 

See also

2021-11-13