Method

GtkToolButtonset_stock_id

deprecated: 3.10 since: 2.4

Declaration [src]

void
gtk_tool_button_set_stock_id (
  GtkToolButton* button,
  const gchar* stock_id
)

Description [src]

Sets the name of the stock item. See gtk_tool_button_new_from_stock(). The stock_id property only has an effect if not overridden by non-NULL GtkToolButton:label-widget and GtkToolButton:icon-widget properties.

Available since: 2.4

Deprecated since: 3.10

Use gtk_tool_button_set_icon_name() instead.

Parameters

stock_id

Type: const gchar*

A name of a stock item, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.