Package: gtk

Function gtk:icon-set-render-icon-pixbuf

Lambda List

gtk:icon-set-render-icon-pixbuf (iconset context size)

Arguments

iconset -- a gtk:icon-set instance
context -- a gtk:style-context object
size -- a gtk:icon-size value, a size of -1 means render at the size of the source and do not scale

Return Value

The gdk-pixbuf:pixbuf object to be displayed.

Details

Renders an icon using the gtk:render-icon-pixbuf function. In most cases, the gtk:widget-render-icon-pixbuf function is better, since it automatically provides most of the arguments from the current widget settings. This function never returns nil. If the icon cannot be rendered, perhaps because an image file fails to load, a default "missing image" icon will be returned instead.

Warning

The gtk:icon-set-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 API instead.
 

See also

#2023-3-27