MenuButton.setChild

void setChild(gtk.widget.Widget child = null)

Sets the child widget of menu_button.

Setting a child resets [gtk.menu_button.MenuButton.label] and propertyGtk.MenuButton:icon-name.

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

Parameters

childthe child widget