Function

GtkIconSetnew_from_pixbuf

deprecated: 3.10 

Declaration [src]

GtkIconSet*
gtk_icon_set_new_from_pixbuf (
  GdkPixbuf* pixbuf
)

Description [src]

Creates a new GtkIconSet with pixbuf as the default/fallback source image. If you don’t add any additional GtkIconSource to the icon set, all variants of the icon will be created from pixbuf, using scaling, pixelation, etc. as required to adjust the icon size or make the icon look insensitive/prelighted.

Deprecated since: 3.10

Use GtkIconTheme instead.

Parameters

pixbuf

Type: GdkPixbuf

A GdkPixbuf.

The data is owned by the caller of the function.

Return value

Type: GtkIconSet

A new GtkIconSet.

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