A widget for displaying both trees and lists.
A GtkTreeView can display both list and tree structures. To display a list,
pass a GtkListStore object to the constructor or
set_model() . For a tree, use a
GtkTreeStore object. Basically any object of
a class that implements the GtkTreeModel interface
After creating the view and setting the model, you need to create some
GtkTreeViewColumns and add them to the view with
append_column() . The column widgets
themselves need some GtkCellRenderers that actually
draw and display the data of the model.
To obtain the selected rows of the view, get the view's
GtkTreeSelection object that manages the selection
by using get_selection() .
If you want to track if it changes, connect its
Create a new tree view.
Signal emmitted when a row in a GtkTreeView is double-clicked.