Package: gtk

Class gtk-shortcuts-shortcut

Superclasses

gtk-box, gtk-container, gtk-widget, gtk-buildable, gtk-orientable, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

accel-size-group
The accel-size-group property of type gtk-size-group (Write)
The size group for the accelerator portion of this shortcut. This is used internally by GTK+, and must not be modified by applications.
accelerator
The accelerator property of type :string (Read / Write)
The accelerator(s) represented by this object. This property is used if "shortcut-type" is set to :accelerator. The syntax of this property is (an extension of) the syntax understood by the function gtk-accelerator-parse. Multiple accelerators can be specified by separating them with a space, but keep in mind that the available width is limited. It is also possible to specify ranges of shortcuts, using ... between the keys. Sequences of keys can be specified using a + or & between the keys.
Examples:
A single shortcut: <ctl><alt>delete
Two alternative shortcuts: <shift>a Home
A range of shortcuts: <alt>1...<alt>9
Several keys pressed together: Control_L&Control_R
A sequence of shortcuts or keys: <ctl>c+<ctl>x
Use + instead of & when the keys may (or have to be) pressed sequentially (e.g use t+t for 'press the t key twice').
Note that <, > and & need to be escaped as <, > and & when used in .ui files.
Default value: nil
action-name
The action-name property of type :string (Read / Write)
A detailed action name. If this is set for a shortcut of type :accelerator, then GTK+ will use the accelerators that are associated with the action via the function gtk-application-accels-for-action, and setting accelerator is not necessary. Since 3.22
Default value: nil
direction
The direction property of type gtk-text-direction (Read / Write)
The text direction for which this shortcut is active. If the shortcut is used regardless of the text direction, set this property to :none.
Default value: :dir-none
icon
The icon property of type g-icon (Read / Write)
An icon to represent the shortcut or gesture. This property is used if shortcut-type is set to :gesture. For the other predefined gesture types, GTK+ provides an icon on its own.
icon-set
The icon-set property of type :boolean (Read / Write)
True if an icon has been set.
Default value: false
shortcut-type
The shortcut-type property of type gtk-shortcut-type (Read / Write)
The type of shortcut that is represented.
Default value: :accelerator
subtitle
The subtitle property of type :string (Read / Write)
The subtitle for the shortcut or gesture. This is typically used for gestures and should be a short, one-line text that describes the gesture itself. For the predefined gesture types, GTK+ provides a subtitle on its own.
Default value: ""
subtitle-set
The subtitle-set property of type :boolean (Read / Write)
True if a subtitle has been set.
Default value: false
title
The title property of type :string (Read / Write)
The textual description for the shortcut or gesture represented by this object. This should be a short string that can fit in a single line.
Default value: ""
title-size-group
The title-size-group property of type gtk-size-group (Write)
The size group for the textual portion of this shortcut. This is used internally by GTK+, and must not be modified by applications.

Details

A gtk-shortcuts-shortcut represents a single keyboard shortcut or gesture with a short text. This widget is only meant to be used with gtk-shortcuts-window.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2020-9-14