Function

Gtkrender_icon_pixbuf

Declaration [src]

GdkPixbuf*
gtk_render_icon_pixbuf (
  GtkStyleContext* context,
  const GtkIconSource* source,
  GtkIconSize size
)

Description [src]

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

Available since:3.0
Deprecated since:3.10

Use gtk_icon_theme_load_icon() instead.

Parameters

context GtkStyleContext
 

A GtkStyleContext.

 The data is owned by the caller of the function.
source GtkIconSource
 

The GtkIconSource specifying the icon to render.

 The data is owned by the caller of the function.
size GtkIconSize
 

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

Returns: GdkPixbuf
 

A newly-created GdkPixbuf containing the rendered icon.

 The caller of the function takes ownership of the data, and is responsible for freeing it.