help porting from GtkClist to GtkTreeView


On GTK+ 1.2, to add data to a row on a GtkClist, I used

I have an idea on how to get the same effect on GtkTreeView, for

-Create a model with TREE columns.
-create the tree view for that model with TWO columns
-The "invisible" column would be the "row data".

If I want to store a struct on the model, I would use a G_TYPE_POINTER.

Is that a good idea? Is that right? Is that how is it suposed to be?

Thanks for your help.

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