ToolButton.from_stock


Description:

[ CCode ( has_construct_function = false , type = "GtkToolItem*" ) ]
public ToolButton.from_stock (string stock_id)

Creates a new ToolButton containing the image and text from a stock item.

Note:

Use ToolButton together with Image.from_icon_name instead.

Some stock ids have preprocessor macros like OK and APPLY.

It is an error if stock_id is not a name of a stock item.

Parameters:

stock_id

the name of the stock item

Returns:

A new ToolButton