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__
25 typedef struct _GtkTreeDataList GtkTreeDataList;
26 struct _GtkTreeDataList
28 GtkTreeDataList *next;
45 typedef struct _GtkTreeDataSortHeader
48 GtkTreeIterCompareFunc func;
50 GDestroyNotify destroy;
51 } GtkTreeDataSortHeader;
53 GtkTreeDataList *_gtk_tree_data_list_alloc (void);
54 void _gtk_tree_data_list_free (GtkTreeDataList *list,
55 GType *column_headers);
56 gboolean _gtk_tree_data_list_check_type (GType type);
57 void _gtk_tree_data_list_node_to_value (GtkTreeDataList *list,
60 void _gtk_tree_data_list_value_to_node (GtkTreeDataList *list,
63 GtkTreeDataList *_gtk_tree_data_list_node_copy (GtkTreeDataList *list,
67 gint _gtk_tree_data_list_compare_func (GtkTreeModel *model,
71 GList * _gtk_tree_data_list_header_new (gint n_columns,
73 void _gtk_tree_data_list_header_free (GList *header_list);
74 GtkTreeDataSortHeader *_gtk_tree_data_list_get_header (GList *header_list,
76 GList *_gtk_tree_data_list_set_header (GList *header_list,
78 GtkTreeIterCompareFunc func,
80 GDestroyNotify destroy);
82 #endif /* __GTK_TREE_DATA_LIST_H__ */