Package: gtk

Function gtk-icon-set-render-icon

Lambda List

gtk-icon-set-render-icon (iconset style direction state size widget detail)

Arguments

iconset -- a gtk-icon-set instance
style -- a GtkStyle object associated with widget, or nil
direction -- a value of the gtk-text-direction enumeration
state -- a value of the gtk-state-type enumeration with the state of the widget
size -- a gtk-icon-size value, a size of -1 means render at the size of the source and do not scale
widget -- a gtk-widget object that will display the icon, or nil, the only use that is typically made of this is to determine the appropriate gdk-screen object
detail -- a string with the detail to pass to the theme engine, or nil, note that passing a detail of anything but nil will disable caching

Return Value

A gdk-pixbuf object to be displayed.

Details

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

See also

2021-7-21