diff options
author | Havoc Pennington <hp@pobox.com> | 2000-08-31 04:20:59 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-08-31 04:20:59 +0000 |
commit | 41b5d5d26dec872ec46a5deba4a2357eaca10398 (patch) | |
tree | c95214b78e57ad36df421b4c8778d4230fbbd833 /gtk/gtktextbtree.h | |
parent | a9de95392ebcdf6101a325c946a965e60b840ad0 (diff) | |
download | gdk-pixbuf-41b5d5d26dec872ec46a5deba4a2357eaca10398.tar.gz |
cache end line, for rapid testing whether an iterator is the end iterator
2000-08-31 Havoc Pennington <hp@pobox.com>
* gtk/gtktextbtree.c (GtkTextBTree): cache end line,
for rapid testing whether an iterator is the end iterator
(gtk_text_btree_new): init end line cache
(gtk_text_line_is_last): use fast cached line to
see if we're the last line.
(get_last_line): use cached line here too, should
speed up some random unrelated code.
Diffstat (limited to 'gtk/gtktextbtree.h')
-rw-r--r-- | gtk/gtktextbtree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktextbtree.h b/gtk/gtktextbtree.h index aba6d5095..0d6da3ce6 100644 --- a/gtk/gtktextbtree.h +++ b/gtk/gtktextbtree.h @@ -198,7 +198,8 @@ gboolean gtk_text_line_byte_has_tag (GtkTextLine GtkTextBTree *tree, gint byte_in_line, GtkTextTag *tag); -gboolean gtk_text_line_is_last (GtkTextLine *line); +gboolean gtk_text_line_is_last (GtkTextLine *line, + GtkTextBTree *tree); GtkTextLine * gtk_text_line_next (GtkTextLine *line); GtkTextLine * gtk_text_line_previous (GtkTextLine *line); void gtk_text_line_add_data (GtkTextLine *line, |