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



Nice solution. Is it bad to use Gtk::Image? And will be Gdk::Pixbuf
still available after destroying it's corresponding Image ?

2010/7/7, Murray Cumming <murrayc murrayc com>:
> 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
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>


-- 
2b || !2b


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