set_align_widget


Description:

[ Version ( since = "3.6" ) ]
public void set_align_widget (Widget? align_widget)

Sets the Widget to use to line the menu with when popped up.

Note that the align_widget must contain the MenuButton itself.

Setting it to null means that the menu will be aligned with the button itself.

Note that this property is only used with menus currently, and not for popovers.

Parameters:

this

a MenuButton

align_widget

a Widget