Function

Gtkrender_icon_pixbuf

deprecated: 3.10 since: 3.0

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

Type: GtkStyleContext

A GtkStyleContext.

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

Type: GtkIconSource

The GtkIconSource specifying the icon to render.

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

Type: 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

Type: 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.