MenuButton.menuModel

gio.menu_model.MenuModel menuModel() @property

Get menuModel property.

Returns

The #GMenuModel from which the popup will be created.

Depending on the #GtkMenuButton:use-popover property, that may be a menu or a popover.

See [gtk.menu_button.MenuButton.setMenuModel] for the interaction with the #GtkMenuButton:popup property.

void menuModel(gio.menu_model.MenuModel propval) @property

Set menuModel property.

Parameters

propvalThe #GMenuModel from which the popup will be created. Depending on the #GtkMenuButton:use-popover property, that may be a menu or a popover. See [gtk.menu_button.MenuButton.setMenuModel] for the interaction with the #GtkMenuButton:popup property.