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:

Hierarchy

hierarchy this GtkShortcutAction ancestor_0 GObject ancestor_0--this

Ancestors

  • GObject

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.

Class structure

struct GtkShortcutActionClass {
  /* no available fields */
}