summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2000-08-31 04:20:59 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-08-31 04:20:59 +0000
commit41b5d5d26dec872ec46a5deba4a2357eaca10398 (patch)
treec95214b78e57ad36df421b4c8778d4230fbbd833 /gtk/gtktextiter.c
parenta9de95392ebcdf6101a325c946a965e60b840ad0 (diff)
downloadgdk-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/gtktextiter.c')
-rw-r--r--gtk/gtktextiter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c
index a72110c81..266ea4056 100644
--- a/gtk/gtktextiter.c
+++ b/gtk/gtktextiter.c
@@ -1240,8 +1240,8 @@ gtk_text_iter_ends_line (const GtkTextIter *iter)
*
* Returns TRUE if @iter is the end iterator, i.e. one past the last
* dereferenceable iterator in the buffer. gtk_text_iter_is_last() is
- * the second most efficient way to check whether an iterator is the
- * end iterator.
+ * the most efficient way to check whether an iterator is the end
+ * iterator.
*
* Return value: whether @iter is the end iterator
**/
@@ -1259,7 +1259,7 @@ gtk_text_iter_is_last (const GtkTextIter *iter)
check_invariants(iter);
- return gtk_text_line_is_last(real->line);
+ return gtk_text_line_is_last(real->line, real->tree);
}
/**