MenuButton.setLabel

void setLabel(string label)

Sets the label to show inside the menu button.

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

If [gtk.menu_button.MenuButton.direction] is not [gtk.types.ArrowType.None], a dropdown arrow will be shown next to the label.

Parameters

labelthe label