Re: Inserting a Gtk::StockID image in a treeview cell
- From: Murray Cumming <murrayc murrayc com>
- To: Галымжан Кожаев <kozhayev gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Inserting a Gtk::StockID image in a treeview cell
- Date: Thu, 08 Jul 2010 08:45:04 +0200
On Thu, 2010-07-08 at 08:38 +0600, Галымжан Кожаев wrote:
> Nice solution. Is it bad to use Gtk::Image?
Well, it seems unnecessary if you will never show that widget.
> And will be Gdk::Pixbuf
> still available after destroying it's corresponding Image ?
Yes, because it's reference-counted, not just owned.
> 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
> >
>
>
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]