MenuButton.setMenuModel
void setMenuModel(gio.menu_model.MenuModel menuModel = null)Sets the [gio.menu_model.MenuModel] from which the popup will be constructed.
If menu_model is null, the button is disabled.
A [gtk.popover.Popover] will be created from the menu model with [gtk.popover_menu.PopoverMenu.newFromModel]. Actions will be connected as documented for this function.
If [gtk.menu_button.MenuButton.popover] is already set, it will be dissociated from the menu_button, and the property is set to null.
Parameters
menuModel | a [gio.menu_model.MenuModel], or null to unset and disable the button |