ShortcutsItem


Object Hierarchy:

Object hierarchy for ShortcutsItem

Description:

[ CCode ( type_id = "adw_shortcuts_item_get_type ()" ) ]
[ Version ( since = "1.8" ) ]
public sealed class ShortcutsItem : Object

An object representing an individual shortcut in [class@ShortcutsSection].

A shortcut has a title, an optional subtitle, and an accelerator.

Accelerator must be specified in the format [class@ShortcutLabel] accepts.

Alternatively, the [property@ShortcutsItem:action-name] property can be used to automatically get accelerator associated with the specified action, as set via [method@Gtk.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 [property@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.


Namespace: Adw
Package: libadwaita-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members: