GtkTreeView
A widget for displaying both trees and lists.
Object Hierarchy
Direct Subclasses
Description
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
is suitable.
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
"changed"
signal.
Constructors
--
Create a new tree view.
Signals
"columns-changed"
"cursor-changed"
"expand-collapse-cursor-row"
"move-cursor"
"row-activated"
Signal emmitted when a row in a GtkTreeView is double-clicked.
"row-collapsed"
"row-expanded"
"select-all"
"select-cursor-parent"
"select-cursor-row"
"set-scroll-adjustments"
"start-interactive-search"
"test-collapse-row"
"test-expand-row"
"toggle-cursor-row"
"unselect-all"