Image.from_stock


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" ) ]
public Image.from_stock (string stock_id, IconSize size)

Warning: Image.from_stock is deprecated since 3.10.

Creates a Image displaying a stock icon.

Note:

Use Image.from_icon_name instead.

Sample stock icon names are OPEN, QUIT . Sample stock sizes are MENU, SMALL_TOOLBAR. If the stock icon name isn’t known, the image will be empty. You can register your own stock icon names, see add_default and add.

Parameters:

stock_id

a stock icon name

size

a stock icon size (IconSize)

Returns:

a new Image displaying the stock icon




2022 vala-language.org