Gtk.Image.new_from_gicon
function new_from_gicon(icon:Gio.Icon, size:Number):Gtk.Widget {
// Gjs wrapper for gtk_image_new_from_gicon()
}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.14
- icon
an icon
- size
a stock icon size
- Returns
a new Gtk.Image displaying the themed icon