Button.newFromIconName

gtk.button.Button newFromIconName(string iconName, gtk.types.IconSize size)

Creates a new button containing an icon from the current icon theme.

If the icon name isn’t known, a “broken image” icon will be displayed instead. If the current icon theme is changed, the icon will be updated appropriately.

This function is a convenience wrapper around [gtk.button.Button.new_] and [gtk.button.Button.setImage].

Parameters

iconNamean icon name or null
sizean icon size (#GtkIconSize)

Returns

a new #GtkButton displaying the themed icon