How to set align of lines and columns in GtkTreeView

835afc01954f14a1d258ace3ec43ce7e.png
1. create
GtkTreeView
;
2. add the columns using
GtkTreeViewColumn
and what type this will render with
GtkCellRendererText
;
3. use method
set_property("xalign", $align);
on renderer to set left (0), center (0.5) or right (1) position of
GtkCellRendererText
;
4. use method
set_alignment($align);
on column to set left (0), center (0.5) or right (1) position of
GtkTreeeViewColumn
;
5. create model
GtkListStore
, that will store the values;
6. add model to the treeview;
7. use
GtkListStore::append
to add values to model, and the data will appear on treeview;