Package: gtk

Function gtk-image-new-from-stock

Lambda List

gtk-image-new-from-stock (stock-id icon-size)

Arguments

stock-id -- a string with the stock icon name
icon-size -- a stock icon size from the gtk-icon-size enumeration

Return Value

A new gtk-image widget displaying the stock icon.

Details

Creates a an image displaying a stock icon.

Sample stock icon names are "gtk-open", "gtk-quit". Sample stock sizes are the :menu, :small-toolbar values. If the stock icon name is not known, the image will be empty. You can register your own stock icon names, see the gtk-icon-factory-add-default and gtk-icon-factory-add functions.

Warning

The gtk-image-new-from-stock function has been deprecated since version 3.10 and should not be used in newly written code. Use the gtk-image-new-from-icon-name function instead.
 

See also

2021-12-17