Re: [gtkmm] Gtk::TreeView performance



>> Igor Gorbounov wrote:
>>> David Jensen wrote:
>>>> try keeping a Glist of structs of GDK::Colors that matches the
>>>> ListStore
>>>> row:column 'color' cells. Have the row:column colors be pointers into
>>>> the Glist.
>>>> accessing a Glist struct is cheap, accessing a row:column is very
>>>> expensive
>>>>
>>> i'm afraid that i don't quite understand how to do this. it seems to me
>>> that the
>>> cellrenderer's propeties can be assigned through another cells only...
>
> Assuming that you mean "other model columns" rather than "another cells",
> you might try using the set_cell_data_func() callback instead.
>
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1TreeViewColumn.html#a19

And I see no need to use GList. C++ has plenty of more pleasant containers
if you need one.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



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