[ CCode ( has_construct_function = false , type = "GtkToolItem*" ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" , since = "2.4" ) ]
public ToolButton.from_stock (string stock_id)
Warning: ToolButton.from_stock is deprecated since 3.10.
Creates a new ToolButton containing the image and text from a stock item.
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.
stock_id |
the name of the stock item |
A new ToolButton |