StyleContext.renderIconPixbuf

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

More...
class StyleContext
static
renderIconPixbuf

Parameters

context StyleContext
source IconSource

the gtk.IconSource specifying the icon to render

size GtkIconSize

the size (gtk.IconSize) 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: Pixbuf

a newly-created gdk.Pixbuf containing the rendered icon

Detailed Description

Deprecated: Use IconTheme.loadIcon instead.

Meta