deprecated: 3.10 since: 3.0
GdkPixbuf* gtk_widget_render_icon_pixbuf ( GtkWidget* widget, const gchar* stock_id, GtkIconSize size )
A convenience function that uses the theme engine and style
widget to look up
stock_id and render it to
stock_id should be a stock icon ID such as
such as #GTK_ICON_SIZE_MENU.
The pixels in the returned
GdkPixbuf are shared with the rest of
the application and should not be modified. The pixbuf should be freed
after use with g_object_unref().
Available since: 3.0
Deprecated since: 3.10
A stock ID.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
A stock size (
GtkIconSize). A size of
(GtkIconSize)-1means render at the size of the source and don’t scale (if there are multiple source sizes, GTK+ picks one of the available sizes).
A new pixbuf, or
NULL if the
stock ID wasn’t known.
|The caller of the method takes ownership of the data, and is responsible for freeing it.|
|The return value can be |