Re: [gtkmm] Gtk::TreeView performance

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

 



> 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@xxxxxxxxxxx
www.murrayc.com
www.openismus.com
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux