Shortcut.with_arguments


Description:

[ CCode ( has_construct_function = false ) ]
public Shortcut.with_arguments (owned ShortcutTrigger? trigger, owned ShortcutAction? action, string? format_string, ...)

Creates a new `GtkShortcut` that is triggered by trigger and then activates action with arguments given by format_string.

Parameters:

trigger

The trigger that will trigger the shortcut

action

The action that will be activated upon triggering

format_string

GVariant format string for arguments or null for no arguments

...

arguments, as given by format string.

Returns:

a new `GtkShortcut`