ToggleToolButton.from_stock


Description:

[ CCode ( has_construct_function = false , type = "GtkToolItem*" ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" , since = "2.4" ) ]
public ToggleToolButton.from_stock (string stock_id)

Warning: ToggleToolButton.from_stock is deprecated since 3.10.

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

Note:

Use ToggleToolButton 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 ToggleToolButton