GtkImage Constructor

GtkImage::new_from_stock (GtkStockItems stock_id, GtkIconSize size);

Creates a GtkImage displaying a stock icon. Sample stock icon names are Gtk::STOCK_OPEN, Gtk::STOCK_EXIT. Sample stock sizes are Gtk::ICON_SIZE_MENU, Gtk::ICON_SIZE_SMALL_TOOLBAR. If the stock icon name isn't known, a "broken image" icon will be displayed instead. You can register your own stock icon names, see add_default() and add() .

This method must be called statically.