summaryrefslogtreecommitdiff
path: root/gtk/gtktreedatalist.h
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-03-23 00:35:19 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-03-23 00:35:19 +0000
commit21fd434c5f528546a35036b4cfce6a708a4c2762 (patch)
tree86ff9f050f2a04d6154d608e211c32b561f8ebfd /gtk/gtktreedatalist.h
parent18b5348b4838c99b85f14e4f0e351facef26b261 (diff)
downloadgdk-pixbuf-21fd434c5f528546a35036b4cfce6a708a4c2762.tar.gz
fix braino. New interface to add cleanup sortable support.
Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): fix braino. * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable support. * gtk/gtktreeview.c: Addition of initial sortable support. * gtk/gtktreestore.c: Addition of initial sortable support. * gtk/gtkliststore.c: Addition of initial sortable support. * gtk/gtkmarshal.list: yet another marshaller. * gtk/gtktreedatallist.[ch]: shared code between the store models for handling sorting headers.
Diffstat (limited to 'gtk/gtktreedatalist.h')
-rw-r--r--gtk/gtktreedatalist.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtktreedatalist.h b/gtk/gtktreedatalist.h
index 3150b97bc..929439534 100644
--- a/gtk/gtktreedatalist.h
+++ b/gtk/gtktreedatalist.h
@@ -23,6 +23,7 @@
#include <glib.h>
#include <glib-object.h>
+#include "gtktreesortable.h"
typedef struct _GtkTreeDataList GtkTreeDataList;
struct _GtkTreeDataList
@@ -40,6 +41,13 @@ struct _GtkTreeDataList
} data;
};
+typedef struct _GtkTreeDataSortHeader
+{
+ gint sort_column_id;
+ GtkTreeIterCompareFunc func;
+ gpointer data;
+ GtkDestroyNotify destroy;
+} GtkTreeDataSortHeader;
GtkTreeDataList *_gtk_tree_data_list_alloc (void);
void _gtk_tree_data_list_free (GtkTreeDataList *list,
@@ -54,5 +62,9 @@ void _gtk_tree_data_list_value_to_node (GtkTreeDataList *list,
GtkTreeDataList *_gtk_tree_data_list_node_copy (GtkTreeDataList *list,
GType type);
+/* Header code */
+GList *_gtk_tree_data_list_header_new (gint n_columns,
+ GType *types);
+void _gtk_tree_data_list_header_free (GList *header_list);
#endif /* __GTK_TREE_DATA_LIST_H__ */