1.48 <AdwShortcutsSection>

Class: <AdwShortcutsSection>

It derives from <GObject>.

An object representing a section in ShortcutsDialog.

It contains ShortcutsItem objects, use ShortcutsSection.add to add them.

<AdwShortcutsSection> implements the <GListModel> interface and allows to access the added shortcut items through it.

‘AdwShortcutsSection‘ as ‘GtkBuildable‘

<AdwShortcutsSection> allows adding <AdwShortcutsItem> objects as children.

Properties

Property: shortcuts-section:item-type self

The type of the items. See list-model:get-item-type.

Its value is a class, or a GType number.

It is read only.

Property: shortcuts-section:n-items self

The number of items. See list-model:get-n-items.

Its value is an unsigned 32-bit integer.

It is read only.

Property: shortcuts-section:title self

The title of the section, can be NULL.

Its value is a string, or #f.

Set it with (set! (shortcuts-section:title self) value).

Procedures

Method: shortcuts-section:add self item
Method: add self item

Adds item to self.

self

Passed: a <AdwShortcutsSection>.

a shortcuts section

item

Passed: a <AdwShortcutsItem>.

the item to add

Method: shortcuts-section:get-title self ⇒ %return
Method: get-title self ⇒ %return

Gets the title of self.

self

Passed: a <AdwShortcutsSection>.

a shortcuts section

%return

Returned: a string, or #f.

the title

Procedure: shortcuts-section:new [title] ⇒ %return

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

title

Passed, or left out: a string, or #f.

the section title

%return

Returned: a <AdwShortcutsSection>.

the newly created <AdwShortcutsSection>

Method: shortcuts-section:set-title self [title]
Method: set-title self [title]

Sets the title of self.

self

Passed: a <AdwShortcutsSection>.

a shortcuts section

title

Passed, or left out: a string, or #f.

the title to use