Package: gtk

Function gtk:shortcuts-group-add-shortcut

Lambda List

gtk:shortcuts-group-add-shortcut (group shortcut)

Arguments

group -- a gtk:shortcuts-group widget
shortcut -- a gtk:shortcuts-shortcut widget

Details

Adds a shortcut to the shortcuts group. This is the programmatic equivalent to using a gtk:builder UI definition and a <child> tag to add the child. Adding children with other API is not appropriate as the gtk:shortcuts-group widget manages its children internally.

Since 4.14

Warning

The gtk:shortcuts-group-add-shortcut function is deprecated since 4.18. This widget will be removed in GTK 5.
 

See also

#2025-05-14