Constructor

GtkToggleToolButtonnew_from_stock

Declaration [src]

GtkToolItem*
gtk_toggle_tool_button_new_from_stock (
  const gchar* stock_id
)

Description [src]

Creates a new GtkToggleToolButton 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_toggle_tool_button_new() instead.

Parameters

stock_id 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

Returns: GtkToolItem
 

A new GtkToggleToolButton.

 The data is owned by the called function.