Button.newFromStock

Creates a new #GtkButton containing the image and text from a [stock item]gtkstock. 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).

More...
class Button
static
newFromStock
(
string stockId
)

Parameters

stockId string

the name of the stock item

Return Value

Type: gtk.button.Button

a new #GtkButton

Detailed Description

Deprecated: Stock items are deprecated. Use gtk.button.Button.newWithLabel instead.