how to render custom columns with a GenericTreeModel
Posted
by Giorgio Gelardi
on Stack Overflow
See other posts from Stack Overflow
or by Giorgio Gelardi
Published on 2010-04-29T08:30:05Z
Indexed on
2010/04/29
10:17 UTC
Read the original article
Hit count: 153
I have to display some data in a treeview. The "real" data model is huge and I cannot copy all the stuff in a TreeStore, so I guess I should use a GenericTreeModel to act like a virtual treeview. Btw the first column is the classic icon+text style and I think I should declare a column with a CellRendererPixbuf (faq sample), but I'm not sure what the model methods on_get_n_columns() and on_get_value() should return. It's both a Pixbuf and a string value for the same column. Any help will be appreciated.
© Stack Overflow or respective owner