set_menu_model


Description:

public void set_menu_model (MenuModel? menu_model)

Sets the `GMenuModel` from which the popup will be constructed.

If menu_model is null, the button is disabled.

A [[email protected]] will be created from the menu model with [[email protected]_from_model]. Actions will be connected as documented for this function.

If [[email protected]:popover] is already set, it will be dissociated from the this, and the property is set to null.

Parameters:

this

a `GtkMenuButton`

menu_model

a `GMenuModel`, or null to unset and disable the button




2022 vala-language.org