Compilation Units
Tagged Types
procedure Destroy (Data : in out User_Data_Type)
procedure Gtk_New
(Self : out Gtk_Callback_Action;
Callback : Shortcut_Data_Func;
Data : User_Data_Type)
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
the data to be passed to Callback finalized
procedure Initialize
(Self : not null access Gtk_Callback_Action_Record'Class;
Callback : Shortcut_Data_Func;
Data : User_Data_Type)
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
the data to be passed to Callback finalized
type Shortcut_Data_Func is access function
(Widget : Gtk_Widget;
Args : GLib.Variant.Gvariant;
Data : User_Data_Type)
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
The user data provided when activating the action
true if the action was successful.
type User_Data_Type (<>) is private;