set_popup


Description:

[ Version ( since = "3.6" ) ]
public void set_popup (Widget? menu)

Sets the Menu that will be popped up when the this is clicked, or null to dissociate any existing menu and disable the button.

If menu_model or popover are set, those objects are dissociated from the this, and those properties are set to null.

Parameters:

this

a MenuButton

menu

a Menu, or null to unset and disable the button




2022 vala-language.org