IconSet.renderIconPixbuf

Warning gtk_icon_set_render_icon_pixbuf has been deprecated since version 3.10 and should not be used in newly-written code. Use GtkIconTheme instead. Renders an icon using gtk_render_icon_pixbuf(). In most cases, gtk_widget_render_icon_pixbuf() 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.

class IconSet
renderIconPixbuf

Parameters

context StyleContext

a GtkStyleContext

size GtkIconSize

icon size. A size of (GtkIconSize)-1 means render at the size of the source and don't scale. [type int]

Return Value

Type: Pixbuf

a GdkPixbuf to be displayed. [transfer full] Since 3.0

Meta