Image.newFromIconName

Creates a #GtkImage displaying 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 Image
static
newFromIconName

Parameters

iconName string

an icon name or null

size gtk.types.IconSize

a stock icon size (#GtkIconSize)

Return Value

Type: gtk.image.Image

a new #GtkImage displaying the themed icon