Gtk.IconFactory.new
function new():Gtk.IconFactory {
// Gjs wrapper for gtk_icon_factory_new()
}Creates a new Gtk.IconFactory. An icon factory manages a collection of Gtk.IconSet<!-- -->s; a Gtk.IconSet manages a set of variants of a particular icon (i.e. a Gtk.IconSet contains variants for different sizes and widget states). Icons in an icon factory are named by a stock ID, which is a simple string identifying the icon. Each Gtk.Style has a list of Gtk.IconFactory<!-- -->s derived from the current theme; those icon factories are consulted first when searching for an icon. If the theme doesn't set a particular icon, GTK+ looks for the icon in a list of default icon factories, maintained by Gtk.IconFactory.prototype.add_default and Gtk.IconFactory.prototype.remove_default. Applications with icons should add a default icon factory with their icons, which will allow themes to override the icons for the application.
- Returns
a new Gtk.IconFactory