How to set format in GtkTreeView

1. create
2. connect the
3. in the callback, get value from model that you want to format;
4. format the value as you want;
5. set text back via
GtkTreeViewwith the
GtkTreeViewColumnand
GtkCellRendererTextas normal;
2. connect the
GtkTreeViewColumnto the
GtkTreeViewColumn::set_cell_data_funccallback;
3. in the callback, get value from model that you want to format;
4. format the value as you want;
5. set text back via
GtkCellRendererText::set_property('text', $new_value);