stock ID wasn’t known
Widget.renderIconPixbuf
gdkpixbuf.pixbuf.Pixbuf renderIconPixbuf(string stockId, gtk.types.IconSize size)A convenience function that uses the theme engine and style settings for widget to look up stock_id and render it to a pixbuf. stock_id should be a stock icon ID such as #GTK_STOCK_OPEN or #GTK_STOCK_OK. size should be a size 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 [gobject.object.ObjectWrap.unref].
Parameters
stockId | a stock ID |
size | a stock size (#GtkIconSize). A size of (GtkIconSize)-1 means render at the size of the source and don’t scale (if there are multiple source sizes, GTK+ picks one of the available sizes). |
Returns
a new pixbuf, or null if the
Deprecated
Use [gtk.icon_theme.IconTheme.loadIcon] instead.