IconSet.renderIcon

Renders an icon using Style.renderIcon. In most cases, Widget.renderIcon is better, since it automatically provides most of the arguments from the current widget settings. This function never returns NULL; if the icon can’t be rendered (perhaps because an image file fails to load), a default "missing image" icon will be returned instead.

More...

Parameters

style Style

a gtk.Style associated with widget, or NULL

direction GtkTextDirection

text direction

state GtkStateType

widget state

size GtkIconSize

icon size (gtk.IconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale.

widget Widget

widget that will display the icon, or NULL. The only use that is typically made of this is to determine the appropriate gdk.Screen

detail string

detail to pass to the theme engine, or NULL. Note that passing a detail of anything but NULL will disable caching.

Return Value

Type: Pixbuf

a gdk.Pixbuf to be displayed

Detailed Description

Deprecated: Use IconSet.renderIconPixbuf instead