Constructor
GtkButtonnew_from_stock
deprecated: 3.10
Declaration [src]
GtkWidget*
gtk_button_new_from_stock (
const gchar* stock_id
)
Description [src]
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_new_with_mnemonic()).
Deprecated since: 3.10
Stock items are deprecated. Use gtk_button_new_with_label()
instead.
Parameters
stock_id
-
Type:
const gchar*
The name of the stock item.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Return value
Type: GtkWidget
A new GtkButton
.
The data is owned by the called function. |