summaryrefslogtreecommitdiff
path: root/gtk/gtktextbtree.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-09-24 23:12:39 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-09-24 23:12:39 +0000
commit1e3b62fd1305a651d279dcf3c2f5929273a8e7a7 (patch)
treea163a43de9cb1a36d66d05202d66736cc62ca21c /gtk/gtktextbtree.h
parent7837ddcde434db3391766c6b7a61107306ed3cdf (diff)
downloadgdk-pixbuf-1e3b62fd1305a651d279dcf3c2f5929273a8e7a7.tar.gz
Get rid of the newline-that-could-not-be-deleted; buffers may now be
2001-09-24 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c, gtktextlayout.c: Get rid of the newline-that-could-not-be-deleted; buffers may now be zero-length. Much easier to fix than expected, once I figured out the right way to do it. However, there are various subtle bugs introduced by this that will have to get sorted out. Please use bugzilla.
Diffstat (limited to 'gtk/gtktextbtree.h')
-rw-r--r--gtk/gtktextbtree.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/gtk/gtktextbtree.h b/gtk/gtktextbtree.h
index 4e3b12236..b3434ff4d 100644
--- a/gtk/gtktextbtree.h
+++ b/gtk/gtktextbtree.h
@@ -23,6 +23,11 @@ guint _gtk_text_btree_get_chars_changed_stamp (GtkTextBTree *tree);
guint _gtk_text_btree_get_segments_changed_stamp (GtkTextBTree *tree);
void _gtk_text_btree_segments_changed (GtkTextBTree *tree);
+gboolean _gtk_text_btree_is_end (GtkTextBTree *tree,
+ GtkTextLine *line,
+ GtkTextLineSegment *seg,
+ int byte_index,
+ int char_offset);
/* Indexable segment mutation */
@@ -82,6 +87,7 @@ 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_end_iter_line (GtkTextBTree *tree);
GtkTextLine * _gtk_text_btree_get_line_at_char (GtkTextBTree *tree,
gint char_index,
gint *line_start_index,
@@ -205,9 +211,12 @@ gboolean _gtk_text_line_byte_has_tag (GtkTextLine
GtkTextBTree *tree,
gint byte_in_line,
GtkTextTag *tag);
-gboolean _gtk_text_line_is_last (GtkTextLine *line,
- GtkTextBTree *tree);
+gboolean _gtk_text_line_is_last (GtkTextLine *line,
+ GtkTextBTree *tree);
+gboolean _gtk_text_line_contains_end_iter (GtkTextLine *line,
+ GtkTextBTree *tree);
GtkTextLine * _gtk_text_line_next (GtkTextLine *line);
+GtkTextLine * _gtk_text_line_next_excluding_last (GtkTextLine *line);
GtkTextLine * _gtk_text_line_previous (GtkTextLine *line);
void _gtk_text_line_add_data (GtkTextLine *line,
GtkTextLineData *data);