Package: gtk

Function gtk-widget-add-accelerator

Lambda List

gtk-widget-add-accelerator (widget signal group key mods flags)

Arguments

widget -- a gtk-widget object to install an accelerator on
signal -- a string with the widget signal to emit on accelerator activation
group -- a gtk-accel-group object for widget, added to its toplevel
key -- an unsigned integer with the GDK keyval of the accelerator
mods -- a gdk-modifier-type modifier key combination of the accelerator
flags -- a gtk-accel-flags value with the accelerators

Details

Installs an accelerator for this widget in the accelerator group that causes the signal to be emitted if the accelerator is activated. The accelerator group needs to be added to the toplevel of the widget via the gtk-window-add-accel-group function, and the signal must be of the :action type. Accelerators added through this function are not user changeable during runtime. If you want to support accelerators that can be changed by the user, use the gtk-accel-map-add-entry and gtk-widget-set-accel-path or gtk-menu-item-accel-path functions instead.
 

See also

*2021-12-22