Compilation Units
Tagged Types
Invokes a callback.
function Get_Type return Glib.GType
type Gtk_Callback_Action is access all Gtk_Callback_Action_Record'Class;
type Gtk_Callback_Action_Record is new Gtk_Shortcut_Action_Record with null record;
procedure Gtk_New
(Self : out Gtk_Callback_Action;
Callback : Shortcut_Func)
Create a custom action that calls the given Callback when activated. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the callback to call when the action is activated
procedure Initialize
(Self : not null access Gtk_Callback_Action_Record'Class;
Callback : Shortcut_Func)
Create a custom action that calls the given Callback when activated. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the callback to call when the action is activated
type Shortcut_Func is access function
(Widget : Gtk_Widget;
Args : GLib.Variant.Gvariant)
return Glib.Gboolean;
Type for shortcuts based on user callbacks.
The widget passed to the activation
The arguments passed to the activation, may be null
true if the action was successful.