Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
GTK2
GTK2.Widget

Method GTK2.Widget()->render_icon()


Method render_icon

GTK2.GdkPixbuf render_icon(string stock_id, int size, string detail)

Description

A convenience function that uses the theme engine and rc file settings to look up stock_id and render it to a pixbuf. stock_id should be a stock icon ID such as GTK2.STOCK_OPEN or GTK2.STOCK_OK. size should be a size such as GTK2.ICON_SIZE_MENU. detail should be a string that identifies//! the widget or code doing the rendering, so that theme engines can special-case rendering for that widget or code.

The pixels in the returned GDK2.Pixbuf are shared with the rest of the application and should not be modified.