CallbackAction.this

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

  1. this(GtkCallbackAction* gtkCallbackAction, bool ownedRef)
  2. this(GtkShortcutFunc callback, void* data, GDestroyNotify destroy)
    class CallbackAction
    this
    (
    GtkShortcutFunc callback
    ,
    void* data
    ,
    GDestroyNotify destroy
    )

Parameters

callback GtkShortcutFunc

the callback to call

data void*

the data to be passed to @callback

destroy GDestroyNotify

the function to be called when the callback action is finalized

Return Value

A new shortcut action

Throws

ConstructionException GTK+ fails to create the object.

Meta