Re: [gtkmm] Gtk::TreeView performance
- From: "Murray Cumming" <murrayc murrayc com>
- To: "David Jensen" <djensen inebraska com>
- Cc: gtkmm-list gnome org, gtk-list gnome org
- Subject: Re: [gtkmm] Gtk::TreeView performance
- Date: Wed, 20 Oct 2004 16:41:40 +0200 (CEST)
> 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
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]