|
Hi.
I'm not sure what exactly are you trying to ask here, so I'll just describe how to build tree view like the one in glade tree view editor.
You'll need to create GtkTreeView and add two GtkTreeViewColumns into it. Into first column, you need to pack GtkCellRenderCombo, second column should have packed in GtkCellRendererText.
Underlying data storage will need to be composed from two GtkTreeModels: one for tree view itself and one for combo box cell renderer. Model for tree view will need to have (at least) two columns, both of type G_TYPE_STRING. Model for combo cell renderer will only need to have one G_TYPE_STRING column.
All that is left to do now is to connect "text" property of both cell renderers to appropriate columns in tree view model and set second model using g_object_set() to "model" property of combo cell renderer.
Tadej
|