diff options
author | Havoc Pennington <hp@redhat.com> | 2001-10-04 00:22:13 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-10-04 00:22:13 +0000 |
commit | 739ffc4934dae8eb1ed2e12eaa9f4772ac715f89 (patch) | |
tree | ff46498583ea76816fbf956652b8b05488ec4aa0 /gtk/gtktextbtree.h | |
parent | 3c09d348d307f4dc61de16ef8163856ebc34022f (diff) | |
download | gtk+-739ffc4934dae8eb1ed2e12eaa9f4772ac715f89.tar.gz |
fix test case, it previously verified incorrect behavior
2001-10-03 Havoc Pennington <hp@redhat.com>
* tests/testtextbuffer.c (logical_motion_tests): fix test case,
it previously verified incorrect behavior
Fixes for #61565
* gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
off the end
(_gtk_text_btree_get_iter_at_line_char): don't return lines off
the end
(_gtk_text_btree_get_iter_at_line_byte): don't return lines off
the end
(gtk_text_iter_forward_lines): if on the last line, move to end of
it
* gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
don't return a line off the end
Diffstat (limited to 'gtk/gtktextbtree.h')
-rw-r--r-- | gtk/gtktextbtree.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktextbtree.h b/gtk/gtktextbtree.h index b3434ff4d6..2736fa6988 100644 --- a/gtk/gtktextbtree.h +++ b/gtk/gtktextbtree.h @@ -87,6 +87,9 @@ void _gtk_text_btree_tag (const GtkTextIter *start, GtkTextLine * _gtk_text_btree_get_line (GtkTextBTree *tree, gint line_number, gint *real_line_number); +GtkTextLine * _gtk_text_btree_get_line_no_last (GtkTextBTree *tree, + gint line_number, + gint *real_line_number); GtkTextLine * _gtk_text_btree_get_end_iter_line (GtkTextBTree *tree); GtkTextLine * _gtk_text_btree_get_line_at_char (GtkTextBTree *tree, gint char_index, |