It derives from <GObject>.
Describes a keyboard shortcut.
It contains a description of how to trigger the shortcut via a
<GtkShortcutTrigger> and a way to activate
the shortcut on a widget via a
<GtkShortcutAction>.
The actual work is usually done via
<GtkShortcutController>, which decides
if and when to activate a shortcut. Using that controller directly
however is rarely necessary as various higher level convenience APIs
exist on <GtkWidget>s that make it easier to use
shortcuts in GTK.
<GtkShortcut> does provide functionality to make
it easy for users to work with shortcuts, either by providing
informational strings for display purposes or by allowing shortcuts to
be configured.
The action that gets activated by this shortcut.
Its value is a <GtkShortcutAction>, or
#f.
Set it with (set! (shortcut:action self) value).
Arguments passed to activation.
Its value is a <GVariant>, or #f.
Set it with (set! (shortcut:arguments self) value).
The trigger that triggers this shortcut.
Its value is a <GtkShortcutTrigger>, or
#f.
Set it with (set! (shortcut:trigger self) value).
Gets the action that is activated by this shortcut.
Passed: a <GtkShortcut>.
Returned: a <GtkShortcutAction>, or
#f.
the action
Gets the arguments that are passed when activating the shortcut.
Passed: a <GtkShortcut>.
Returned: a <GVariant>, or #f.
the arguments
Gets the trigger used to trigger self.
Passed: a <GtkShortcut>.
Returned: a <GtkShortcutTrigger>, or
#f.
the trigger used
Creates a new <GtkShortcut> that is triggered by
trigger and then activates action.
Passed, or left out: a
<GtkShortcutTrigger>, or #f.
The trigger that will trigger the shortcut
Passed, or left out: a <GtkShortcutAction>,
or #f.
The action that will be activated upon triggering
Returned: a <GtkShortcut>.
a new <GtkShortcut>
Sets the new action for self to be action.
Passed: a <GtkShortcut>.
Passed, or left out: a <GtkShortcutAction>,
or #f.
The new action. If the action is #f, the nothing action
will be used.
Sets the arguments to pass when activating the shortcut.
Passed: a <GtkShortcut>.
Passed, or left out: a <GVariant>, or
#f.
arguments to pass when activating self
Sets the new trigger for self to be trigger.
Passed: a <GtkShortcut>.
Passed, or left out: a
<GtkShortcutTrigger>, or #f.
The new trigger. If the trigger is #f, the never trigger
will be used.