set_from_stock


Description:

public bool set_from_stock (Widget widget, string stock_id, IconSize icon_size) throws Error

Sets the contents of this using the stock icon stock_id, as rendered by widget.

Parameters:

this

a Texture

widget

a Widget

stock_id

the stock id of the icon

icon_size

the size of the icon, or -1

Returns:

true on success, false on failure.