1 /*
2  * TilEm II
3  *
4  * Copyright (c) 2011 Benjamin Moody
5  *
6  * This program is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation, either version 3 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 /* Set up a tree view with fixed-size columns, where the column sizes
21    are determined automatically based on a template.  The template
22    model must contain the same number and types of data columns as the
23    tree view's data model.  The first row of the template model will
24    be used to compute column sizes; any additional rows are
25    ignored. */
26 void fixed_tree_view_init_with_template(GtkWidget *treeview,
27                                         GtkTreeModel *template);
28 
29 /* As above, but the template model is constructed automatically.  The
30    tree view must have a data model attached already.
31 
32    Arguments following COLGROUPSIZE are a sequence of (column, data)
33    pairs, as you would pass to gtk_list_store_set().  The list must be
34    terminated with -1.
35 
36    If COLGROUPSIZE is a positive integer N, then the template will be
37    constructed by repeating the first N columns as many times as
38    necessary.  In this case, columns K and K+N must always have the
39    same type. */
40 void fixed_tree_view_init(GtkWidget *treeview, int colgroupsize, ...);
41