Button.newFromStock

gtk.button.Button newFromStock(string stockId)

Creates a new #GtkButton containing the image and text from a stock item. Some stock ids have preprocessor macros like #GTK_STOCK_OK and #GTK_STOCK_APPLY.

If stock_id is unknown, then it will be treated as a mnemonic label (as for gtk.button.Button.newWithMnemonic).

Parameters

stockIdthe name of the stock item

Returns

a new #GtkButton

Deprecated

Stock items are deprecated. Use gtk.button.Button.newWithLabel

instead.