diff options
author | Kristian Rietveld <kris@gtk.org> | 2002-03-20 22:06:05 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2002-03-20 22:06:05 +0000 |
commit | 92febe2720cd229749e64e99ea31906bade84a44 (patch) | |
tree | 3aae7af7600e2217ec47b0909ee5b42fc250901f /gtk/gtkrbtree.h | |
parent | 8acfd1e9de927adf2bea546bda55740a2b0cc436 (diff) | |
download | gdk-pixbuf-92febe2720cd229749e64e99ea31906bade84a44.tar.gz |
add _gtk_rbtree_set_fixed_height()
Wed Mar 20 22:59:23 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtkrbtree.[ch]: add _gtk_rbtree_set_fixed_height()
* gtk/gtktreeprivate.h: add fixed_height_check field
* gtk/gtktreeview.c (gtk_tree_view_init): initialize
scroll_sync_timer and fixed_height_check
(do_validate_rows): add fixed_height_check. If all validated rows
in the first cycle have the same height, then we set that height for
the entire tree. This is some sort of 'fake' optimization, but helps
a lot for the common case. We keep validating the entire tree in
the background though.
(gtk_tree_view_set_model): reset fixed_height_check
Diffstat (limited to 'gtk/gtkrbtree.h')
-rw-r--r-- | gtk/gtkrbtree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkrbtree.h b/gtk/gtkrbtree.h index f3c585b85..c5b4768db 100644 --- a/gtk/gtkrbtree.h +++ b/gtk/gtkrbtree.h @@ -140,6 +140,8 @@ void _gtk_rbtree_node_mark_valid (GtkRBTree *tree, GtkRBNode *node); void _gtk_rbtree_column_invalid (GtkRBTree *tree); void _gtk_rbtree_mark_invalid (GtkRBTree *tree); +void _gtk_rbtree_set_fixed_height (GtkRBTree *tree, + gint height); gint _gtk_rbtree_node_find_offset (GtkRBTree *tree, GtkRBNode *node); gint _gtk_rbtree_node_find_parity (GtkRBTree *tree, |