Class: Gtk::CallbackAction

Inherits:
ShortcutAction show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from ShortcutAction

#activate, #print, #to_string

Constructor Details

#initialize(callback, data, destroy) ⇒ Gtk::CallbackAction

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

Parameters:

  • callback (Gtk::ShortcutFunc)

    the callback to call

  • data (GObject)

    the data to be passed to callback

  • destroy (GLib::DestroyNotify)

    the function to be called when the callback action is finalized