Class
Gtk.ShortcutAction
Description [src]
abstract class Gtk.ShortcutAction : GObject.Object {
/* No available fields */
}
GtkShortcutAction
encodes an action that can be triggered by a
keyboard shortcut.
GtkShortcutActions
contain functions that allow easy presentation
to end users as well as being printed for debugging.
All GtkShortcutActions
are immutable, you can only specify their
properties during construction. If you want to change a action, you
have to replace it with a new one. If you need to pass arguments to
an action, these are specified by the higher-level GtkShortcut
object.
To activate a GtkShortcutAction
manually, gtk_shortcut_action_activate()
can be called.
GTK provides various actions:
GtkMnemonicAction
: a shortcut action that callsgtk_widget_mnemonic_activate()
GtkCallbackAction
: a shortcut action that invokes a given callbackGtkSignalAction
: a shortcut action that emits a given signalGtkActivateAction
: a shortcut action that callsgtk_widget_activate()
GtkNamedAction
: a shortcut action that callsgtk_widget_activate_action()
GtkNothingAction
: a shortcut action that does nothing
Constructors
gtk_shortcut_action_parse_string
Tries to parse the given string into an action.
Instance methods
gtk_shortcut_action_activate
Activates the action on the widget
with the given args
.
gtk_shortcut_action_print
Prints the given action into a string for the developer.
gtk_shortcut_action_to_string
Prints the given action into a human-readable string.