Constructor

GtkShortcutnew_with_arguments

Declaration [src]

GtkShortcut*
gtk_shortcut_new_with_arguments (
  GtkShortcutTrigger* trigger,
  GtkShortcutAction* action,
  const char* format_string,
  ...
)

Description [src]

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

Parameters

trigger GtkShortcutTrigger
 

The trigger that will trigger the shortcut.

 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
action GtkShortcutAction
 

The action that will be activated upon triggering.

 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
format_string const char*
 

GVariant format string for arguments or NULL for no arguments.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
...
 

Arguments, as given by format string.

Return value

Returns: GtkShortcut
 

A new GtkShortcut.

 The caller of the function takes ownership of the data, and is responsible for freeing it.