summaryrefslogtreecommitdiff
path: root/gtk/gtkrbtree.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2002-11-20 18:15:28 +0000
committerKristian Rietveld <kristian@src.gnome.org>2002-11-20 18:15:28 +0000
commit83e9cd53209b4d0636d01920afbb48458ef75739 (patch)
treebf8fa01d26fe8f313a3b34767586d7a4d39e3989 /gtk/gtkrbtree.c
parentbc035915e9406896c83a7cd6a132eb722229a876 (diff)
downloadgdk-pixbuf-83e9cd53209b4d0636d01920afbb48458ef75739.tar.gz
return a value in the range of [-1, 1] instead [0, 1],
Wed Nov 20 19:29:50 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtkrbtree.c (gtk_rbtree_reorder_sort_func): return a value in the range of [-1, 1] instead [0, 1], (gtk_rbtree_reorder_invert_func): ditto, This makes treeview reordering working on platforms as FreeBSD and solaris, thanks go to Heiner Eichmann for finding this out and sending in a patch (#98251). Wed Nov 20 19:27:07 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreestore.c (node_free): only free the data list if node->data is not NULL, (gtk_tree_store_remove): free the data list from the node if needed. (#94728, pointed out by Peter Bloomfield). Wed Nov 20 19:23:13 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_remove_column): stop editing and set the edited_column to NULL if edited_column is set. (#91288, modified patch from Josh Parsons). Wed Nov 20 19:20:34 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do a full redraw if vadjustment->value is bigger than tree_view->priv->height, (gtk_tree_view_row_deleted): free the row ref if it isn't valid anymore. (#83726, reported by Robert Kinsella).
Diffstat (limited to 'gtk/gtkrbtree.c')
-rw-r--r--gtk/gtkrbtree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkrbtree.c b/gtk/gtkrbtree.c
index 3a4841e9a..13e0dd569 100644
--- a/gtk/gtkrbtree.c
+++ b/gtk/gtkrbtree.c
@@ -931,14 +931,14 @@ static int
gtk_rbtree_reorder_sort_func (gconstpointer a,
gconstpointer b)
{
- return ((GtkRBReorder *) a)->order > ((GtkRBReorder *) b)->order;
+ return ((GtkRBReorder *) a)->order - ((GtkRBReorder *) b)->order;
}
static int
gtk_rbtree_reorder_invert_func (gconstpointer a,
gconstpointer b)
{
- return ((GtkRBReorder *) a)->invert_order > ((GtkRBReorder *) b)->invert_order;
+ return ((GtkRBReorder *) a)->invert_order - ((GtkRBReorder *) b)->invert_order;
}
static void