Package: gtk

Function gtk:render-icon-pixbuf

Lambda List

gtk:render-icon-pixbuf (context source size)

Arguments

context -- a gtk:style-context object
source -- a gtk:icon-source instance specifying the icon to render
size -- a gtk:icon-size size to render the icon at

Return Value

The newly created gdk-pixbuf:pixbuf object containing the rendered icon.

Details

Renders the icon specified by source at the given size, returning the result in a pixbuf. A size of -1 means render at the size of the source and do not scale.

Warning

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

See also

#2023-3-27