ShortcutsSection


Object Hierarchy:

Object hierarchy for ShortcutsSection

Description:

[ CCode ( type_id = "gtk_shortcuts_section_get_type ()" ) ]
public class ShortcutsSection : Box, Implementor, Buildable, Orientable

A `GtkShortcutsSection` collects all the keyboard shortcuts and gestures for a major application mode.

Note:

This widget will be removed in GTK 5

If your application needs multiple sections, you should give each section a unique [property@Gtk.ShortcutsSection:section-name] and a [ property@Gtk.ShortcutsSection:title] that can be shown in the section selector of the [class@Gtk.ShortcutsWindow].

The [property@Gtk.ShortcutsSection:max-height] property can be used to influence how the groups in the section are distributed over pages and columns.

This widget is only meant to be used with [class@Gtk.ShortcutsWindow].

The recommended way to construct a `GtkShortcutsSection` is with [class@Gtk.Builder], by using the `<child>` tag to populate a `GtkShortcutsSection` with one or more [class@Gtk.ShortcutsGroup] instances, which in turn contain one or more [ class@Gtk.ShortcutsShortcut] objects.

If you need to add a group programmatically, use [method@Gtk.ShortcutsSection.add_group].

Shortcuts and Gestures

Pan gestures allow to navigate between sections.

The following signals have default keybindings:

  • [signal@Gtk.ShortcutsSection:GtkShortcutsSection:change-current-page]

Namespace: Gtk
Package: gtk+-3.0

Content:

Properties:

Creation methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Orientable