addShortcut

open fun addShortcut(shortcut: ShortcutsShortcut)

Adds a shortcut to the shortcuts group.

This is the programmatic equivalent to using class@Gtk.Builder and a <child> tag to add the child. Adding children with other API is not appropriate as GtkShortcutsGroup manages its children internally.

Since

4.14

Parameters

shortcut

the GtkShortcutsShortcut to add