data_out function to dynamically allocate return value.
[pspp-builds.git] / src / ui / gui / checkbox-treeview.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2007  Free Software Foundation
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
17
18 #ifndef __CHECKBOX_TREEVIEW_H__
19 #define __CHECKBOX_TREEVIEW_H__ 1
20
21
22 #include <gtk/gtk.h>
23
24 struct checkbox_entry_item
25   {
26     const char *name;
27     const char *label;
28   };
29
30 enum
31   {
32     CHECKBOX_COLUMN_LABEL,
33     CHECKBOX_COLUMN_SELECTED,
34     N_CHECKBOX_COLUMNS
35   };
36
37
38 void put_checkbox_items_in_treeview (GtkTreeView *treeview,
39                                      guint default_items,
40                                      gint n_items,
41                                      const struct checkbox_entry_item *items
42                                      );
43 #endif