Re: Inserting a Gtk::StockID image in a treeview cell
- From: Murray Cumming <murrayc murrayc com>
- To: Guillaume Radenne <guillaume radenne gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Inserting a Gtk::StockID image in a treeview cell
- Date: Wed, 07 Jul 2010 08:48:07 +0200
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]