How to highlight lines of GtkTreeView

ae2cb34c29803121b446d9c7f166ae97.png
1. create
GtkTreeView
with the
GtkTreeViewColumn
and
GtkCellRendererText
as normal;
2. connect the
GtkTreeViewColumn
to the
GtkTreeViewColumn::set_cell_data_func
callback;
3. in the callback, change the font color of line, setting property
foreground
;
4. also in the callback, get path, that is the representation of line of model in
GtkTreeView
;
5. verify is is odd or even and change correct color setting property
cell-background
;