GtkTreeViewColumn Constructor
Creates a new column object that can be added to a
GtkTreeView with the
add_column method.
The first parameter defines the title of the column which is shown on top
of the widget. The second one, cell_renderer,
is used to draw the actual values in the column of the row.
Parameter attribute selects the attribute of the
cell renderer that shall be set.
The last parameter, column defines the number
of the GtkTreeModel column that is displayed.
Example 140. Creating a GtkTreeViewColumn
$renderer = new GtkCellRendererText();
$column = new GtkTreeViewColumn('Title', $renderer, 'text', 0); |