Method
GtkIconSetrender_icon_pixbuf
deprecated: 3.10 since: 3.0
Declaration [src]
GdkPixbuf*
gtk_icon_set_render_icon_pixbuf (
GtkIconSet* icon_set,
GtkStyleContext* context,
GtkIconSize size
)
Description [src]
Renders an icon using gtk_render_icon_pixbuf(). In most cases,
gtk_widget_render_icon_pixbuf()
is better, since it automatically provides
most of the arguments from the current widget settings. This
function never returns NULL
; if the icon can’t be rendered
(perhaps because an image file fails to load), a default “missing
image” icon will be returned instead.
Available since: 3.0
Deprecated since: 3.10
Use GtkIconTheme
instead.
Parameters
context
-
Type:
GtkStyleContext
A
GtkStyleContext
.The data is owned by the caller of the method. size
-
Type:
GtkIconSize
Icon size (
GtkIconSize
). A size of(GtkIconSize)-1
means render at the size of the source and don’t scale.
Return value
Type: GdkPixbuf
A GdkPixbuf
to be displayed.
The caller of the method takes ownership of the returned data, and is responsible for freeing it. |