Gtk.IconTheme.prototype.lookup_icon
function lookup_icon(icon_name:String, size:Number, flags:Gtk.IconLookupFlags):Gtk.IconInfo {
// Gjs wrapper for gtk_icon_theme_lookup_icon()
}Looks up a named icon and returns a structure containing information such as the filename of the icon. The icon can then be rendered into a pixbuf using Gtk.IconInfo.prototype.load_icon. (Gtk.IconTheme.prototype.load_icon combines these two steps if all you need is the pixbuf.)
Since 2.4
- icon_name
the name of the icon to lookup
- size
desired icon size
- flags
flags modifying the behavior of the icon lookup
- Returns
a Gtk.IconInfo object containing information about the icon, or null if the icon wasn't found.