MenuButton.setMenuModel

Sets the GMenuModel from which the popup will be constructed.

If @menu_model is %NULL, the button is disabled.

A [class@Gtk.Popover] will be created from the menu model with [ctor@Gtk.PopoverMenu.new_from_model]. Actions will be connected as documented for this function.

If [property@Gtk.MenuButton:popover] is already set, it will be dissociated from the @menu_button, and the property is set to %NULL.

class MenuButton
void
setMenuModel

Parameters

menuModel MenuModel

a GMenuModel, or %NULL to unset and disable the button

Meta