MenuButton.setChild

Sets the child widget of menu_button.

Setting a child resets gtk.menu_button.MenuButton.utf8 and propertyGtk.MenuButton:icon-name.

If propertyGtk.MenuButton:always-show-arrow is set to TRUE and gtk.menu_button.MenuButton.ArrowType is not gtk.types.ArrowType.None, a dropdown arrow will be shown next to the child.

class MenuButton
void
setChild

Parameters

child gtk.widget.Widget

the child widget