Constructor
GtkToolButtonnew_from_stock
deprecated: 3.10 since: 2.4
Declaration [src]
GtkToolItem*
gtk_tool_button_new_from_stock (
const gchar* stock_id
)
Description [src]
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.
Available since: 2.4
Deprecated since: 3.10
Use gtk_tool_button_new()
together with
gtk_image_new_from_icon_name()
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: GtkToolItem
A new GtkToolButton
.
The data is owned by the called function. |