Package: gtk

Function gtk:icon-set-new-from-pixbuf

Lambda List

gtk:icon-set-new-from-pixbuf (pixbuf)

Arguments

pixbuf -- a gdk-pixbuf:pixbuf object

Return Value

The new gtk:icon-set instance.

Details

Creates a new icon set with pixbuf as the default/fallback source image. If you do not add any additional gtk:icon-source instance to the icon set, all variants of the icon will be created from pixbuf, using scaling, pixelation, etc. as required to adjust the icon size or make the icon look insensitive/prelighted.

Warning

The gtk:icon-set-new-from-pixbuf function has been deprecated since version 3.10 and should not be used in newly written code. Use the gtk:icon-theme API instead.
 

See also

#2023-3-27