Package: gtk

Function gtk:widget-class-add-shortcut

Lambda List

gtk:widget-class-add-shortcut (gtype shortcut)

Arguments

gtype -- a g:type-t type ID for the widget class to add the shortcut to
shortcut -- a gtk:shortcut object to add

Details

Installs a shortcut for the widget class of g:type-t type. Every instance created for the widget class or its subclasses will inherit this shortcut and trigger it.

Shortcuts added this way will be triggered in the :bubble propagation phase, which means they may also trigger if child widgets have focus.

This function must only be used in class initialization functions otherwise it is not guaranteed that the shortcut will be installed.
 

See also

#2025-2-13