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

A gdk-pixbuf object to be displayed.

Details

Renders an icon using the function gtk-render-icon-pixbuf. In most cases, the function gtk-widget-render-icon-pixbuf 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 function gtk-icon-set-render-icon-pixbuf has been deprecated since version 3.10 and should not be used in newly written code. Use the gtk-icon-theme class instead.
 

See also

2021-7-21