IconSet.renderIconPixbuf
gdkpixbuf.pixbuf.Pixbuf renderIconPixbuf(gtk.style_context.StyleContext context, gtk.types.IconSize size)Renders an icon using gtk.global.renderIconPixbuf. In most cases, gtk.widget.Widget.renderIconPixbuf 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.
Parameters
context | a #GtkStyleContext |
size | icon size (#GtkIconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale. |
Returns
a #GdkPixbuf to be displayed
Deprecated
Use #GtkIconTheme instead.