ShortcutsSection


Object Hierarchy:

Gtk.ShortcutsSection Gtk.ShortcutsSection Gtk.ShortcutsSection Gtk.Box Gtk.Box Gtk.Box->Gtk.ShortcutsSection Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Box GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.ShortcutsSection Gtk.Accessible->Gtk.Box Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.ShortcutsSection Gtk.Buildable->Gtk.Box Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.ShortcutsSection Gtk.ConstraintTarget->Gtk.Box Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable Gtk.Orientable Gtk.Orientable->Gtk.ShortcutsSection Gtk.Orientable->Gtk.Box

Description:

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

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

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].


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

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