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.

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

class Button
static
newFromIconName

Parameters

iconName string

an icon name or null

size gtk.types.IconSize

an icon size (#GtkIconSize)

Return Value

Type: gtk.button.Button

a new #GtkButton displaying the themed icon