Constructor

GtkImagenew_from_icon_set

deprecated: 3.10 

Declaration [src]

GtkWidget*
gtk_image_new_from_icon_set (
  GtkIconSet* icon_set,
  GtkIconSize size
)

Description [src]

Creates a GtkImage displaying an icon set. Sample stock sizes are

GTK_ICON_SIZE_MENU, #GTK_ICON_SIZE_SMALL_TOOLBAR. Instead of using

this function, usually it’s better to create a GtkIconFactory, put your icon sets in the icon factory, add the icon factory to the list of default factories with gtk_icon_factory_add_default(), and then use gtk_image_new_from_stock(). This will allow themes to override the icon you ship with your application.

The GtkImage does not assume a reference to the icon set; you still need to unref it if you own references. GtkImage will add its own reference rather than adopting yours.

Deprecated since: 3.10

Use gtk_image_new_from_icon_name() instead.

Parameters

icon_set

Type: GtkIconSet

A GtkIconSet.

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

Type: GtkIconSize

A stock icon size (GtkIconSize).

Return value

Type: GtkWidget

A new GtkImage.

The data is owned by the called function.