GtkImage Constructor

GtkImage::new_from_icon_set (GtkIconSet iconset, GtkIconSize size);

Creates a GtkImage displaying an icon set. Sample stock sizes are Gtk::ICON_SIZE_MENU, Gtk::ICON_SIZE_SMALL_TOOLBAR.

Instead of using this function, usually it's better to create a GtkIconFactory, put your icon sets in the icon factory, add the icon factory to the list of default factories with add_default() , and then use GtkImage::new_from_stock() . This will allow themes to override the icon you ship with your application.

This method must be called statically.