CallbackAction


Description:

[ CCode ( has_construct_function = false , type = "GtkShortcutAction*" ) ]
public CallbackAction (owned ShortcutFunc callback)

Create a custom action that calls the given callback when activated.

Parameters:

callback

the callback to call when the action is activated

data

the data to be passed to callback

destroy

the function to be called when the callback action is finalized

Returns:

A new shortcut action