Image.newFromStock

Creates a #GtkImage displaying a stock icon. Sample stock icon names are #GTK_STOCK_OPEN, #GTK_STOCK_QUIT. Sample stock sizes are #GTK_ICON_SIZE_MENU, #GTK_ICON_SIZE_SMALL_TOOLBAR. If the stock icon name isn’t known, the image will be empty. You can register your own stock icon names, see gtk.icon_factory.IconFactory.addDefault and gtk.icon_factory.IconFactory.add.

More...
class Image
static
newFromStock

Parameters

stockId string

a stock icon name

size gtk.types.IconSize

a stock icon size (#GtkIconSize)

Return Value

Type: gtk.image.Image

a new #GtkImage displaying the stock icon

Detailed Description

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