Re: Inserting a Gtk::StockID image in a treeview cell



On Mon, 2010-07-05 at 17:49 +0200, Guillaume Radenne wrote:
> Hello,
> 
> I'm wondering how i can put a Gtk::StockID image in a treeview cell ?
> 
> I curently know how to put a png file (as an example) but i don't know
> how to do the same thing with an icon such as
> Gtk::StockID(Gtk::Stock::YES) ...

You can render the StockID to a Pixbuf, using
Gtk::Widget::render_icon().

gtkmm's demo does this:
http://git.gnome.org/browse/gtkmm/tree/demos/gtk-demo/example_stockbrowser.cc#n165


-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]