IconSet.from_pixbuf


Description:

[ CCode ( has_construct_function = false ) ]
public IconSet.from_pixbuf (Pixbuf pixbuf)

Creates a new IconSet with pixbuf as the default/fallback source image.

Note:

Use IconTheme instead.

If you don’t add any additional IconSource 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.

Parameters:

pixbuf

a Pixbuf

Returns:

a new IconSet




2022 vala-language.org