add_binding_action


Description:

[ CCode ( cname = "gtk_widget_class_add_binding_action" ) ]
public class void add_binding_action (uint keyval, ModifierType mods, string action_name, string? format_string, ...)

Creates a new shortcut for this that activates the given action_name with arguments read according to format_string.

The arguments and format string must be provided in the same way as with Variant.

This function is a convenience wrapper around [[email protected]_shortcut] and must be called during class initialization.

Parameters:

this

the class to add the binding to

keyval

key value of binding to install

mods

key modifier of binding to install

action_name

the action to activate

format_string

GVariant format string for arguments or null for no arguments

...

arguments, as given by format string




2022 vala-language.org