IconSet.renderIconSurface

Renders an icon using gtk_render_icon_pixbuf() and converts it to a cairo surface.

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.

More...
class IconSet
renderIconSurface

Parameters

context StyleContext
size GtkIconSize

icon size (gtk.IconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale.

scale int

the window scale to render for

forWindow Window

gdk.Window to optimize drawing for, or NULL

Return Value

Type: Surface

a cairo_surface_t to be displayed

Detailed Description

Deprecated: Use gtk.IconTheme instead.

Meta

Since

3.10