renderIconPixbuf

Renders the icon specified by source at the given size, returning the result in a pixbuf.

More...

Parameters

context gtk.style_context.StyleContext

a #GtkStyleContext

source gtk.icon_source.IconSource

the #GtkIconSource specifying the icon to render

size gtk.types.IconSize

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

Return Value

Type: gdkpixbuf.pixbuf.Pixbuf

a newly-created #GdkPixbuf containing the rendered icon

Detailed Description

Deprecated: Use gtk.icon_theme.IconTheme.loadIcon instead.