Displaying domain objects with GtkTreeView

Hi all!

How do I display list of custom objects in GtkTreeView?
GtkTreeView takes GtkListStore as a model, but it doesn't allow custom
objects, only list of gobjects.

On the other hand, when I want to read list's selection all I get is
the GtkListStore model - list of gobjets and I have to figure out the
actual domain object the data comes from.

I thought of adding a hidden column with some id, but maybe there is a
better solution?

Pozdrawiam / Best Regards
Rafal Krupinski

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