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.
21 #ifndef __GTK_TREE_DATA_LIST_H__
22 #define __GTK_TREE_DATA_LIST_H__
25 #include <glib-object.h>
26 #include "gtktreesortable.h"
28 typedef struct _GtkTreeDataList GtkTreeDataList;
29 struct _GtkTreeDataList
31 GtkTreeDataList *next;
48 typedef struct _GtkTreeDataSortHeader
51 GtkTreeIterCompareFunc func;
53 GtkDestroyNotify destroy;
54 } GtkTreeDataSortHeader;
56 GtkTreeDataList *_gtk_tree_data_list_alloc (void);
57 void _gtk_tree_data_list_free (GtkTreeDataList *list,
58 GType *column_headers);
59 gboolean _gtk_tree_data_list_check_type (GType type);
60 void _gtk_tree_data_list_node_to_value (GtkTreeDataList *list,
63 void _gtk_tree_data_list_value_to_node (GtkTreeDataList *list,
66 GtkTreeDataList *_gtk_tree_data_list_node_copy (GtkTreeDataList *list,
70 gint _gtk_tree_data_list_compare_func (GtkTreeModel *model,
74 GList * _gtk_tree_data_list_header_new (gint n_columns,
76 void _gtk_tree_data_list_header_free (GList *header_list);
77 GtkTreeDataSortHeader *_gtk_tree_data_list_get_header (GList *header_list,
79 GList *_gtk_tree_data_list_set_header (GList *header_list,
81 GtkTreeIterCompareFunc func,
83 GtkDestroyNotify destroy);
85 #endif /* __GTK_TREE_DATA_LIST_H__ */