ShortcutsGroup

A gtk.shortcuts_group.ShortcutsGroup represents a group of related keyboard shortcuts or gestures.

The group has a title. It may optionally be associated with a view of the application, which can be used to show only relevant shortcuts depending on the application context.

This widget is only meant to be used with gtk.shortcuts_window.ShortcutsWindow.

The recommended way to construct a gtk.shortcuts_group.ShortcutsGroup is with gtk.builder.Builder, by using the <child> tag to populate a gtk.shortcuts_group.ShortcutsGroup with one or more gtk.shortcuts_shortcut.ShortcutsShortcut instances.

If you need to add a shortcut programmatically, use gtk.shortcuts_group.ShortcutsGroup.addShortcut.

Members

Functions

addShortcut
void addShortcut(gtk.shortcuts_shortcut.ShortcutsShortcut shortcut)

Adds a shortcut to the shortcuts group.

Inherited Members

From Box

append
void append(gtk.widget.Widget child)

Adds child as the last child to box.

getBaselineChild
int getBaselineChild()

Gets the value set by gtk.box.Box.setBaselineChild.

getBaselinePosition
gtk.types.BaselinePosition getBaselinePosition()

Gets the value set by gtk.box.Box.setBaselinePosition.

getHomogeneous
bool getHomogeneous()

Returns whether the box is homogeneous (all children are the same size).

getSpacing
int getSpacing()

Gets the value set by gtk.box.Box.setSpacing.

insertChildAfter
void insertChildAfter(gtk.widget.Widget child, gtk.widget.Widget sibling)

Inserts child in the position after sibling in the list of box children.

prepend
void prepend(gtk.widget.Widget child)

Adds child as the first child to box.

remove
void remove(gtk.widget.Widget child)

Removes a child widget from box.

reorderChildAfter
void reorderChildAfter(gtk.widget.Widget child, gtk.widget.Widget sibling)

Moves child to the position after sibling in the list of box children.

setBaselineChild
void setBaselineChild(int child)

Sets the baseline child of a box.

setBaselinePosition
void setBaselinePosition(gtk.types.BaselinePosition position)

Sets the baseline position of a box.

setHomogeneous
void setHomogeneous(bool homogeneous)

Sets whether or not all children of box are given equal space in the box.

setSpacing
void setSpacing(int spacing)

Sets the number of pixels to place between children of box.