Button.newFromIconName

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.

class Button
static
newFromIconName
(
string iconName
)

Parameters

iconName string

an icon name

Return Value

Type: gtk.button.Button

a new gtk.button.Button displaying the themed icon