Constructor
GtkImagenew_from_stock
deprecated: 3.10
Declaration [src]
GtkWidget*
gtk_image_new_from_stock (
const gchar* stock_id,
GtkIconSize size
)
Description [src]
Creates a GtkImage
displaying a stock icon. Sample stock icon
names are #GTK_STOCK_OPEN, #GTK_STOCK_QUIT. Sample stock sizes
are #GTK_ICON_SIZE_MENU, #GTK_ICON_SIZE_SMALL_TOOLBAR. If the stock
icon name isn’t known, the image will be empty.
You can register your own stock icon names, see
gtk_icon_factory_add_default()
and gtk_icon_factory_add().
Deprecated since: 3.10
Use gtk_image_new_from_icon_name()
instead.
Parameters
stock_id
-
Type:
const gchar*
A stock icon name.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. size
-
Type:
GtkIconSize
A stock icon size (
GtkIconSize
).
Return value
Type: GtkWidget
A new GtkImage
displaying the stock icon.
The data is owned by the called function. |