How to display a tree structure with GtkTreeView

ff39df64dd108c09a1ac5556d052c7b1.png
1. create
GtkTreeView
;
2. add the colum using
GtkTreeViewColumn
and what type this will render with
GtkCellRendererText
;
3. create model
GtkTreeStore
, that will store the values;
4. add model to the treeview;
5. use
GtkTreeStore::append
to add values to model, and the data will appear on treeview;
6.
GtkTreeStore::append
will return a
GtkTreeIter
that can be used to add new values inside this record;