diff options
author | Benjamin Otte <otte@redhat.com> | 2011-11-16 04:14:00 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-11-16 04:31:06 +0100 |
commit | 59097ecef4c536e68817aa0e3c04c5e0188e75c9 (patch) | |
tree | 93b8e892df88b69a476b9453b2b406fc49a5a852 /gtk/gtkrbtree.h | |
parent | 320df163a270566db4ddd8b5422e3f32b76a867c (diff) | |
download | gtk+-59097ecef4c536e68817aa0e3c04c5e0188e75c9.tar.gz |
treeview: Rename "parity" to "total_count"
Now that we use it to actually count the rows instead of just even/odd,
it's better to reflect that in the variable name.
Diffstat (limited to 'gtk/gtkrbtree.h')
-rw-r--r-- | gtk/gtkrbtree.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk/gtkrbtree.h b/gtk/gtkrbtree.h index 9958d55677..85b3dad60b 100644 --- a/gtk/gtkrbtree.h +++ b/gtk/gtkrbtree.h @@ -66,12 +66,6 @@ struct _GtkRBNode { guint flags : 14; - /* count the number of total nodes beneath us, including nodes - * of children trees. - * i.e. node->left->count + node->right->count + node->children->root->count + 1 - */ - guint parity; - GtkRBNode *left; GtkRBNode *right; GtkRBNode *parent; @@ -80,6 +74,11 @@ struct _GtkRBNode * i.e. node->left->count + node->right->count + 1 */ gint count; + /* count the number of total nodes beneath us, including nodes + * of children trees. + * i.e. node->left->count + node->right->count + node->children->root->count + 1 + */ + guint total_count; /* this is the total of sizes of * node->left, node->right, our own height, and the height |