From 83e9cd53209b4d0636d01920afbb48458ef75739 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Wed, 20 Nov 2002 18:15:28 +0000 Subject: return a value in the range of [-1, 1] instead [0, 1], Wed Nov 20 19:29:50 2002 Kristian Rietveld * 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 * 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 * 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 * 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). --- gtk/gtkrbtree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkrbtree.c') diff --git a/gtk/gtkrbtree.c b/gtk/gtkrbtree.c index 3a4841e9a4..13e0dd569e 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 -- cgit v1.2.1