1.24 <GtkCallbackAction>

Class: <GtkCallbackAction>

It derives from <GtkShortcutAction>.

Invokes a callback.

Procedures

Procedure: callback-action:new callback ⇒ %return

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

callback

Passed: a procedure.

the callback to call when the action is activated

See GtkShortcutFunc for how it is called.

%return

Returned: a <GtkCallbackAction>.

A new shortcut action

data

Not passed: guile-gi supplies it.

the data to be passed to callback

destroy

Not passed: guile-gi supplies it.

the function to be called when the callback action is finalized

See GDestroyNotify for how it is called.