Compilation Units
Tagged Types
procedure Destroy (Data : in out User_Data_Type)
type Gtk_Menu_Button_Create_Popup_Func is access procedure
(Menu_Button : not null access Gtk.Menu_Button.Gtk_Menu_Button_Record'Class;
User_Data : User_Data_Type);
User-provided callback function to create a popup for a GtkMenuButton on demand. This function is called when the popup of Menu_Button is shown, but none has been provided via [methodGtk.MenuButton.set_popover] or [methodGtk.MenuButton.set_menu_model].
the GtkMenuButton
User data passed to Gtk.Menu_Button.Set_Create_Popup_Func
procedure Set_Create_Popup_Func
(Self : not null access Gtk.Menu_Button.Gtk_Menu_Button_Record'Class;
Func : Gtk_Menu_Button_Create_Popup_Func;
User_Data : User_Data_Type;
Destroy_Notify : Glib.G_Destroy_Notify_Address)
Sets Func to be called when a popup is about to be shown. Func should use one of
[methodGtk.MenuButton.set_popover] -
[methodGtk.MenuButton.set_menu_model] to set a popup for Menu_Button. If Func is non-null, Menu_Button will always be sensitive. Using this function will not reset the menu widget attached to Menu_Button. Instead, this can be done manually in Func.
function to call when a popup is about to be shown, but none has been provided via other means, or null to reset to default behavior
user data to pass to Func
destroy notify for User_Data
type User_Data_Type (<>) is private;