Adw.ShortcutsSection

g Adw.ShortcutsSection Adw.ShortcutsSection GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.Object GObject.Object GObject.Object->Adw.ShortcutsSection Gio.ListModel->Adw.ShortcutsSection Gtk.Buildable->Adw.ShortcutsSection

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.ListModel (4), Gtk.Buildable (1)

Structs:

GObject.ObjectClass (5)

class

new (title)

add (item)

get_title ()

set_title (title)

Virtual Methods

Inherited:

GObject.Object (7), Gio.ListModel (3), Gtk.Buildable (9)

Properties

Name

Type

Flags

Short Description

title

str

r/w/en

Signals

Inherited:

GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

GObject.Object (1), Gio.ListModel (1)

Class Details

class Adw.ShortcutsSection(**kwargs)
Bases:

GObject.Object, Gio.ListModel, Gtk.Buildable

Abstract:

No

Structure:

Adw.ShortcutsSectionClass

An object representing a section in [class`ShortcutsDialog`].

It contains [class`ShortcutsItem`] objects, use [method`ShortcutsSection`.add] to add them.

AdwShortcutsSection implements the [iface`Gio`.ListModel] interface and allows to access the added shortcut items through it.

Adw.ShortcutsSection as Gtk.Buildable

AdwShortcutsSection allows adding AdwShortcutsItem objects as children.

New in version 1.8.

classmethod new(title)
Parameters:

title (str or None) – the section title

Returns:

the newly created AdwShortcutsSection

Return type:

Adw.ShortcutsSection

Creates a new AdwShortcutsSection with title as its title if provided.

New in version 1.8.

add(item)
Parameters:

item (Adw.ShortcutsItem) – the item to add

Adds item to self.

New in version 1.8.

get_title()
Returns:

the title

Return type:

str or None

Gets the title of self.

New in version 1.8.

set_title(title)
Parameters:

title (str or None) – the title to use

Sets the title of self.

New in version 1.8.

Property Details

Adw.ShortcutsSection.props.title
Name:

title

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The title of the section, can be NULL.

New in version 1.8.