Constructor
GtkImagenew_from_gicon
since: 2.14
Declaration [src]
GtkWidget*
gtk_image_new_from_gicon (
GIcon* icon,
GtkIconSize size
)
Description [src]
Creates a GtkImage displaying an icon from the current icon theme.
If the icon name isn’t known, a “broken image” icon will be
displayed instead. If the current icon theme is changed, the icon
will be updated appropriately.
Available since: 2.14
Parameters
icon-
Type:
GIconAn icon.
The data is owned by the caller of the function. size-
Type:
GtkIconSizeA stock icon size (
GtkIconSize).
Return value
Type: GtkWidget
A new GtkImage displaying the themed icon.
| The data is owned by the called function. |