render_icon_pixbuf


Description:

[ CCode ( cname = "gtk_render_icon_pixbuf" ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" , since = "3.0" ) ]
public Pixbuf render_icon_pixbuf (IconSource source, IconSize size)

Warning: render_icon_pixbuf is deprecated since 3.10.

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

Note:

Use load_icon instead.

Parameters:

source

the IconSource specifying the icon to render

size

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

context

a StyleContext

Returns:

a newly-created Pixbuf containing the rendered icon