2 * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library 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 GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __GTK_TREE_DATA_LIST_H__
21 #define __GTK_TREE_DATA_LIST_H__
23 #include <gtk/gtktreemodel.h>
24 #include <gtk/gtktreesortable.h>
26 typedef struct _GtkTreeDataList GtkTreeDataList;
27 struct _GtkTreeDataList
29 GtkTreeDataList *next;
46 typedef struct _GtkTreeDataSortHeader
49 GtkTreeIterCompareFunc func;
51 GDestroyNotify destroy;
52 } GtkTreeDataSortHeader;
54 GtkTreeDataList *_gtk_tree_data_list_alloc (void);
55 void _gtk_tree_data_list_free (GtkTreeDataList *list,
56 GType *column_headers);
57 gboolean _gtk_tree_data_list_check_type (GType type);
58 void _gtk_tree_data_list_node_to_value (GtkTreeDataList *list,
61 void _gtk_tree_data_list_value_to_node (GtkTreeDataList *list,
64 GtkTreeDataList *_gtk_tree_data_list_node_copy (GtkTreeDataList *list,
68 gint _gtk_tree_data_list_compare_func (GtkTreeModel *model,
72 GList * _gtk_tree_data_list_header_new (gint n_columns,
74 void _gtk_tree_data_list_header_free (GList *header_list);
75 GtkTreeDataSortHeader *_gtk_tree_data_list_get_header (GList *header_list,
77 GList *_gtk_tree_data_list_set_header (GList *header_list,
79 GtkTreeIterCompareFunc func,
81 GDestroyNotify destroy);
83 #endif /* __GTK_TREE_DATA_LIST_H__ */