diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-06-15 23:03:27 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-06-15 23:03:27 +0000 |
commit | 67f8b5bd468fa8acef16f04e7e897aa47e8d6299 (patch) | |
tree | 251f61b38353923cd4d782f80fd2ecc66fb79f40 /tests | |
parent | 6adcae811bea38163c01371c409942b1ba215cf3 (diff) | |
download | gtk+-67f8b5bd468fa8acef16f04e7e897aa47e8d6299.tar.gz |
Rename gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
* gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
Now I can really reorder/sort all Store widgets. treesorttest
seems to just work now.
* gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
testtreesort worked through a big coincidence all this time.
* gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
code.
* tests/testtreecolumns.c: Big 'ol warning at the top letting
people know that this code should never ever ever be copied.
HA!
While everyone else was busy flaming eash other over configuration
engines, I secretly got sorting completely working with store widgets
and GtkTreeView. GtkTreeModelSort, here I come!!!!!
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testtreecolumns.c | 24 | ||||
-rw-r--r-- | tests/treestoretest.c | 2 |
2 files changed, 23 insertions, 3 deletions
diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c index f61208b812..5584d07d48 100644 --- a/tests/testtreecolumns.c +++ b/tests/testtreecolumns.c @@ -1,5 +1,26 @@ #include <gtk/gtk.h> +/* + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * README README README README README README README README README README + * + * DO NOT!!! I REPEAT DO NOT! EVER LOOK AT THIS CODE AS AN EXAMPLE OF WHAT YOUR + * CODE SHOULD LOOK LIKE. + * + * IT IS VERY CONFUSING, AND IS MEANT TO TEST A LOT OF CODE IN THE TREE. WHILE + * IT IS ACTUALLY CORRECT CODE, IT IS NOT USEFUL. + */ GtkWidget *left_tree_view; GtkWidget *top_right_tree_view; @@ -14,8 +35,7 @@ GtkWidget *sample_tree_view_bottom; -/* Kids, don't try this at home. - */ +/* Kids, don't try this at home. */ /* Small GtkTreeModel to model columns */ typedef struct _ViewColumnModel ViewColumnModel; diff --git a/tests/treestoretest.c b/tests/treestoretest.c index c32e8842a9..c6551a197c 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -25,7 +25,7 @@ node_set (GtkTreeIter *iter) gtk_tree_store_set (base_model, iter, 0, str, -1); g_free (str); - n = g_random_int (); + n = g_random_int_range (10000,99999); if (n < 0) n *= -1; str = g_strdup_printf ("%d", n); |