It derives from <GObject>.
An object representing an individual shortcut in
ShortcutsSection.
A shortcut has a title, an optional subtitle, and an accelerator.
Accelerator must be specified in the format ShortcutLabel
accepts.
Alternatively, the ShortcutsItem:action-name property can be used
to automatically get accelerator associated with the specified action,
as set via application:set-accels-for-action.
If both are specified, the accelerator will be used if the action couldn’t be found or doesn’t have an accelerator associated for it.
If ShortcutsItem:direction is set, the shortcut will only be
displayed for the specified text direction. This allows to display
different shortcuts for different text directions.
The shortcut accelerator.
Accelerator must be in the format ShortcutLabel accepts.
Its value is a string, or #f.
Set it with (set! (shortcuts-item:accelerator self) value).
Fully qualified action name to get the accelerator from.
Its value is a string, or #f.
Set it with (set! (shortcuts-item:action-name self) value).
The shortcut direction.
If set to Gtk.TextDirection.LTR or Gtk.TextDirection.rtl,
the shortcut will only be displayed for this direction.
Its value is a <GtkTextDirection> (or,
to set it, one of its symbols).
Set it with (set! (shortcuts-item:direction self) value).
The subtitle of the shortcut.
Its value is a string, or #f.
Set it with (set! (shortcuts-item:subtitle self) value).
The title of the shortcut.
Its value is a string, or #f.
Set it with (set! (shortcuts-item:title self) value).
Gets the accelerator of self.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Returned: a string.
the accelerator
Gets the action name to get the accelerator from.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Returned: a string.
the action name
Gets the direction of self.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Returned: a <GtkTextDirection>.
the shortcut direction
Gets the subtitle of self.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Returned: a string.
the subtitle
Gets the title of self.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Returned: a string.
the title
Creates a new <AdwShortcutsItem> with
title and accelerator.
Passed: a string.
the shortcut title
Passed: a string.
the shortcut accelerator
Returned: a <AdwShortcutsItem>.
the newly created <AdwShortcutsItem>
Creates a new <AdwShortcutsItem> with
title and action-name.
Passed: a string.
the shortcut title
Passed: a string.
the shortcut action name
Returned: a <AdwShortcutsItem>.
the newly created <AdwShortcutsItem>
Sets the accelerator of self.
accelerator must be in the format ShortcutLabel accepts.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Passed: a string.
the accelerator to use
Sets the action name to get the accelerator from.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Passed: a string.
the action name to use
Sets the direction of self.
If set to Gtk.TextDirection.ltr or Gtk.TextDirection.rtl,
the shortcut will only be displayed for this direction.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Passed: a <GtkTextDirection>, or one of
its symbols.
the shortcut direction
Sets the subtitle of self.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Passed: a string.
the subtitle to use
Sets the title of self.
Passed: a <AdwShortcutsItem>.
a shortcuts item
Passed: a string.
the title to use