Package: gtk
Function gtk-widget-set-accel-path
Lambda Listgtk-widget-set-accel-path (widget path group) ArgumentsDetails
Given an accelerator group and an accelerator path sets up an accelerator in
the accelerator group so whenever the key binding that is defined for path
is pressed, the widget will be activated.
This removes any accelerators, for any accelerator group, installed by previous calls to the gtk-widget-set-accel-path function. Associating
accelerators with paths allows them to be modified by the user and the modifications to be saved for future use. See the gtk-accel-map-save
function. This function is a low level function that would most likely be used by a menu creation system like the gtk-ui-manager class. If you use the gtk-ui-manager class, setting up accelerator paths will be done automatically. Even when you are not using the gtk-ui-manager class, if you only want to set up accelerators on menu items the gtk-menu-item-accel-path function provides a somewhat more convenient interface. | See also |
2021-9-16