summaryrefslogtreecommitdiff
path: root/gtk/gtkrbtree.c
diff options
context:
space:
mode:
authorKristian Rietveld <kristian@planet.nl>2001-09-01 20:56:41 +0000
committerKristian Rietveld <kristian@src.gnome.org>2001-09-01 20:56:41 +0000
commitd9e18f0a2f1e46ec6f0e207843007b265d0782a8 (patch)
tree814a67b93de211318fad7596226eba9d16c5901b /gtk/gtkrbtree.c
parent140a63234e18c874d59c59f6aa9d72836875f4b4 (diff)
downloadgtk+-d9e18f0a2f1e46ec6f0e207843007b265d0782a8.tar.gz
add warnings per jrb's request.
Sat Sep 1 21:57:27 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings per jrb's request.
Diffstat (limited to 'gtk/gtkrbtree.c')
-rw-r--r--gtk/gtkrbtree.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkrbtree.c b/gtk/gtkrbtree.c
index 18cdf6e387..348b120bed 100644
--- a/gtk/gtkrbtree.c
+++ b/gtk/gtkrbtree.c
@@ -775,8 +775,11 @@ _gtk_rbtree_reorder (GtkRBTree *tree,
GArray *array;
GtkRBNode *node;
gint i;
-
-
+
+ g_return_if_fail (tree != NULL);
+ g_return_if_fail (length > 0);
+ g_return_if_fail (tree->root->count == length);
+
/* Sort the trees values in the new tree. */
array = g_array_sized_new (FALSE, FALSE, sizeof (GtkRBReorder), length);
for (i = 0; i < length; i++)