diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-06-14 23:25:52 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-06-14 23:25:52 +0000 |
commit | 426ac9c6fea9e3786f3d17ec6500984fd43792d3 (patch) | |
tree | 95121893d56533c4fbd0896cae291b877e170499 /gtk/gtktreemodelsort.h | |
parent | c6046481211807cab25446cf4c19c123263b9fb7 (diff) | |
download | gtk+-426ac9c6fea9e3786f3d17ec6500984fd43792d3.tar.gz |
Whoops. Forgot this a couple months ago. Now GtkTreeStore sort of sorts.
Thu Jun 14 19:21:27 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops. Forgot
this a couple months ago. Now GtkTreeStore sort of sorts. I'll
finish it off tonight, though it basically works now when it's a
list. Also, I have a sinking feeling neither GtkTreeStore or
GtkListStore actually resort when adding a new item. I'll look
into it.
Diffstat (limited to 'gtk/gtktreemodelsort.h')
-rw-r--r-- | gtk/gtktreemodelsort.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gtk/gtktreemodelsort.h b/gtk/gtktreemodelsort.h index 192e030d30..c780693117 100644 --- a/gtk/gtktreemodelsort.h +++ b/gtk/gtktreemodelsort.h @@ -21,6 +21,7 @@ #define __GTK_TREE_MODEL_SORT_H__ #include <gtk/gtktreemodel.h> +#include <gtk/gtktreesortable.h> #ifdef __cplusplus extern "C" { @@ -48,9 +49,13 @@ struct _GtkTreeModelSort gint stamp; guint flags; GtkTreeModel *child_model; - gint sort_col; - GValueCompareFunc func; + /* sort information */ + GList *sort_list; + gint sort_column_id; + GtkTreeSortOrder order; + + /* signal ids */ guint changed_id; guint inserted_id; guint has_child_toggled_id; @@ -65,9 +70,7 @@ struct _GtkTreeModelSortClass GtkType gtk_tree_model_sort_get_type (void); GtkTreeModel *gtk_tree_model_sort_new (void); -GtkTreeModel *gtk_tree_model_sort_new_with_model (GtkTreeModel *child_model, - GValueCompareFunc func, - gint sort_col); +GtkTreeModel *gtk_tree_model_sort_new_with_model (GtkTreeModel *child_model); void gtk_tree_model_sort_set_model (GtkTreeModelSort *tree_model_sort, GtkTreeModel *child_model); GtkTreeModel *gtk_tree_model_sort_get_model (GtkTreeModelSort *tree_model); |