diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-10-25 20:32:40 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-10-25 20:32:40 +0000 |
commit | 889d64b46e877f72392d04e468a7b5cb69f71a74 (patch) | |
tree | 16c9dbe25e7fdbdbbbd2a4847e0d30c20b3e8aa4 /gtk/gtkrbtree.h | |
parent | bbd503bc6c62f98fae3fa334f8f08c3318a06ea5 (diff) | |
download | gtk+-889d64b46e877f72392d04e468a7b5cb69f71a74.tar.gz |
Add support for invalid nodes. (_gtk_rbnode_rotate_right): Ditto.
Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
invalid nodes.
(_gtk_rbnode_rotate_right): Ditto.
(_gtk_rbtree_node_mark_invalid): New function.
(_gtk_rbtree_node_mark_valid): New function.
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
GObject, not a GtkObject.
(gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
correct.
(gtk_tree_model_sort_row_deleted): ditto.
(gtk_tree_model_sort_{un,}ref_node): Fix.
* gtk/gtktreeview.c: Protean incremental reflow support (commented
out)
* gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
to const char *key.
* gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
Important 1 line fix to fix a lot of refcounting woes.
Diffstat (limited to 'gtk/gtkrbtree.h')
-rw-r--r-- | gtk/gtkrbtree.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk/gtkrbtree.h b/gtk/gtkrbtree.h index 356668fcfa..793b8691ed 100644 --- a/gtk/gtkrbtree.h +++ b/gtk/gtkrbtree.h @@ -36,7 +36,9 @@ typedef enum GTK_RBNODE_IS_PRELIT = 1 << 4, GTK_RBNODE_IS_SEMI_COLLAPSED = 1 << 5, GTK_RBNODE_IS_SEMI_EXPANDED = 1 << 6, - GTK_RBNODE_NON_COLORS = GTK_RBNODE_IS_PARENT | GTK_RBNODE_IS_SELECTED | GTK_RBNODE_IS_PRELIT | GTK_RBNODE_IS_SEMI_COLLAPSED | GTK_RBNODE_IS_SEMI_EXPANDED + GTK_RBNODE_INVALID = 1 << 7, + GTK_RBNODE_DESCENDANTS_INVALID = 1 << 8, + GTK_RBNODE_NON_COLORS = GTK_RBNODE_IS_PARENT | GTK_RBNODE_IS_SELECTED | GTK_RBNODE_IS_PRELIT | GTK_RBNODE_IS_SEMI_COLLAPSED | GTK_RBNODE_IS_SEMI_EXPANDED | GTK_RBNODE_INVALID | GTK_RBNODE_DESCENDANTS_INVALID } GtkRBNodeColor; typedef struct _GtkRBTree GtkRBTree; @@ -121,6 +123,10 @@ GtkRBNode *_gtk_rbtree_find_count (GtkRBTree *tree, void _gtk_rbtree_node_set_height (GtkRBTree *tree, GtkRBNode *node, gint height); +void _gtk_rbtree_node_mark_invalid(GtkRBTree *tree, + GtkRBNode *node); +void _gtk_rbtree_node_mark_valid (GtkRBTree *tree, + GtkRBNode *node); gint _gtk_rbtree_node_find_offset (GtkRBTree *tree, GtkRBNode *node); gint _gtk_rbtree_node_find_parity (GtkRBTree *tree, |