Image.newFromIconSet

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.IconFactory.addDefault, and then use gtk.image.Image.newFromStock. 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.

More...

Parameters

iconSet gtk.icon_set.IconSet

a #GtkIconSet

size gtk.types.IconSize

a stock icon size (#GtkIconSize)

Return Value

Type: gtk.image.Image

a new #GtkImage

Detailed Description

Deprecated: Use gtk.image.Image.newFromIconName instead.