set_child


Description:

[ Version ( since = "4.6" ) ]
public void set_child (Widget? child)

Sets the child widget of this.

Setting a child resets [property@Gtk.MenuButton:label] and [property@Gtk.MenuButton:icon-name].

If [property@Gtk.MenuButton:always-show-arrow] is set to `TRUE` and [property@Gtk.MenuButton:direction] is not `GTK_ARROW_NONE`, a dropdown arrow will be shown next to the child.

Parameters:

this

a `GtkMenuButton`

child

the child widget