MenuButton.setIconName

Sets the name of an icon to show inside the menu button.

Setting icon name resets gtk.menu_button.MenuButton.utf8 and gtk.menu_button.MenuButton.Widget.

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 icon.

class MenuButton
void
setIconName
(
string iconName
)

Parameters

iconName string

the icon name