summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKristian Rietveld <kristian@planet.nl>2001-10-03 18:29:20 +0000
committerKristian Rietveld <kristian@src.gnome.org>2001-10-03 18:29:20 +0000
commitb5ad1977616580108e45300647e29b331c98ee8c (patch)
tree846c9797c6180c9afbdf7beaf7a2b7a951b1be5e /tests
parenteacd03aef25cb0208d13c19e6a807a974c053cff (diff)
downloadgdk-pixbuf-b5ad1977616580108e45300647e29b331c98ee8c.tar.gz
preparation for surgery ditto
Wed Oct 3 20:29:29 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtktreemodelsort.[ch]: preparation for surgery * tests/testtreesort.c: ditto
Diffstat (limited to 'tests')
-rw-r--r--tests/testtreesort.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/tests/testtreesort.c b/tests/testtreesort.c
index 0dba6d29c..2b817661d 100644
--- a/tests/testtreesort.c
+++ b/tests/testtreesort.c
@@ -1,5 +1,7 @@
#include <gtk/gtk.h>
+#include "../gtk/gtktreedatalist.h"
+
typedef struct _ListSort ListSort;
struct _ListSort
@@ -151,11 +153,11 @@ main (int argc, char *argv[])
gtk_tree_view_column_set_sort_column_id (column, WORD_COLUMN_4);
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view), column);
-
+/*
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (smodel),
WORD_COLUMN_1,
GTK_SORT_ASCENDING);
-
+ */
gtk_container_add (GTK_CONTAINER (scrolled_window), tree_view);
gtk_window_set_default_size (GTK_WINDOW (window), 400, 400);
gtk_widget_show_all (window);
@@ -217,9 +219,14 @@ main (int argc, char *argv[])
gtk_tree_view_column_set_sort_column_id (column, WORD_COLUMN_4);
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view2), column);
+ gtk_tree_sortable_set_default_sort_func (GTK_TREE_SORTABLE (smodel),
+ (GtkTreeIterCompareFunc)gtk_tree_data_list_compare_func,
+ NULL, NULL);
+/*
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (smodel),
WORD_COLUMN_1,
GTK_SORT_DESCENDING);
+ */
gtk_container_add (GTK_CONTAINER (scrolled_window2), tree_view2);
gtk_window_set_default_size (GTK_WINDOW (window2), 400, 400);
@@ -282,11 +289,11 @@ main (int argc, char *argv[])
NULL);
gtk_tree_view_column_set_sort_column_id (column, WORD_COLUMN_4);
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view3), column);
-
+/*
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (ssmodel),
WORD_COLUMN_1,
- GTK_SORT_DESCENDING);
-
+ GTK_SORT_ASCENDING);
+*/
gtk_container_add (GTK_CONTAINER (scrolled_window3), tree_view3);
gtk_window_set_default_size (GTK_WINDOW (window3), 400, 400);
gtk_widget_show_all (window3);