How to detect when GtkTreeView was selected

1. create
2. get the
3. connect the
4. in the callback, get the
5. now you can get or set values from model;
GtkTreeViewwith the
GtkTreeViewColumnand
GtkCellRendererTextas normal;
2. get the
GtkTreeSelectionfrom
GtkTreeView;
3. connect the
GtkTreeSelectionto the
changedsignal;
4. in the callback, get the
GtkTreeModeland
GtkTreeIterfrom selection with
GtkTreeSelection::get_selected();
5. now you can get or set values from model;