setLabel

open fun setLabel(label: String)

Sets the label to show inside the menu button.

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

If property@Gtk.MenuButton:direction is not GTK_ARROW_NONE, a dropdown arrow will be shown next to the label.

Parameters

label

the label