[Gtk-sharp-list] Howto use Treeview Cell Data Function

John BouAntoun secretsquirrel@optusnet.com.au
Sun, 25 Jan 2004 00:05:28 +1100


Hey guys,

I have treeview that has a liststore of complex objects.

I wanted to map some text cell renderers to different string properties
of the complex object.

I figured out that I need a CellDataFunction and have the signature
correct, but I have no idea what to do inside the CellDataFunction to
get it to render properly.

Some help (an example even) would be much appreciation.

For simplicity's sake lets just say the complex object looked something
like this

class complexObject {
        string firstString {get;};
        string secondString {get;};
}

how would I get those two properties to render in the separate columns
of a treeview?

Thanks in advance

JBA