ToolButton.newFromStock
gtk.tool_button.ToolButton newFromStock(string stockId)Creates a new #GtkToolButton containing the image and text from a stock item. Some stock ids have preprocessor macros like #GTK_STOCK_OK and #GTK_STOCK_APPLY.
It is an error if stock_id is not a name of a stock item.
Parameters
stockId | the name of the stock item |
Returns
A new #GtkToolButton
Deprecated
Use [gtk.tool_button.ToolButton.new_] together with
[gtk.image.Image.newFromIconName] instead.