Image.this

Creates a gtk.Image 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 gtk.IconFactory, put your icon sets in the icon factory, add the icon factory to the list of default factories with IconFactory.addDefault, and then use Image.newFromStock. This will allow themes to override the icon you ship with your application.

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

More...

Parameters

iconSet IconSet
size GtkIconSize

a stock icon size (gtk.IconSize)

Return Value

a new gtk.Image

Detailed Description

Deprecated: Use Image.newFromIconName instead.

Throws

ConstructionException GTK+ fails to create the object.