Constructor

GtkStatusIconnew_from_stock

deprecated: 3.14 since: 2.10

Declaration [src]

GtkStatusIcon*
gtk_status_icon_new_from_stock (
  const gchar* stock_id
)

Description [src]

Creates a status icon displaying a stock icon. Sample stock icon names are #GTK_STOCK_OPEN, #GTK_STOCK_QUIT. You can register your own stock icon names, see gtk_icon_factory_add_default() and gtk_icon_factory_add().

Available since: 2.10

Deprecated since: 3.14

Use GNotification and GtkApplication to provide status notifications.

Parameters

stock_id

Type: const gchar*

A stock icon id.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: GtkStatusIcon

A new GtkStatusIcon.

The caller of the function takes ownership of the data, and is responsible for freeing it.