Gtk.Image.new_from_icon_name

function new_from_icon_name(icon_name:String, size:Number):Gtk.Widget {
    // Gjs wrapper for gtk_image_new_from_icon_name()
}

Creates a Gtk.Image 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.

Since 2.6

icon_name

an icon name

size

a stock icon size

Returns

a new Gtk.Image displaying the themed icon