forked from AuroraMiddleware/gtk
928c069883
2000-10-03 Havoc Pennington <hp@redhat.com> * gtk/testtextbuffer.c: clean up trailing whitespace, add extensive tests for tag toggle iteration. * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan distance * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag): optimize case where the tag root is on level 1 (gtk_text_line_previous_could_contain_tag): attempt to implement (gtk_text_line_next_could_contain_tag): Abstract out node_compare functionality * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle): Implement this, though not very efficiently. * gtk/gtktextiterprivate.h: reformat * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end iterator * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix this to properly revalidate the iterators. * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work properly at the end of the line (and therefore on empty lines) * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee, maybe we should return a value...
33 lines
1.0 KiB
C
33 lines
1.0 KiB
C
#ifndef GTK_TEXT_ITER_PRIVATE_H
|
|
#define GTK_TEXT_ITER_PRIVATE_H
|
|
|
|
#include <gtk/gtktextiter.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
#include <gtk/gtktextiter.h>
|
|
#include <gtk/gtktextbtree.h>
|
|
|
|
GtkTextLineSegment *gtk_text_iter_get_indexable_segment (const GtkTextIter *iter);
|
|
GtkTextLineSegment *gtk_text_iter_get_any_segment (const GtkTextIter *iter);
|
|
GtkTextLine * gtk_text_iter_get_text_line (const GtkTextIter *iter);
|
|
GtkTextBTree * gtk_text_iter_get_btree (const GtkTextIter *iter);
|
|
gboolean gtk_text_iter_forward_indexable_segment (GtkTextIter *iter);
|
|
gboolean gtk_text_iter_backward_indexable_segment (GtkTextIter *iter);
|
|
gint gtk_text_iter_get_segment_byte (const GtkTextIter *iter);
|
|
gint gtk_text_iter_get_segment_char (const GtkTextIter *iter);
|
|
|
|
|
|
/* debug */
|
|
void gtk_text_iter_check(const GtkTextIter *iter);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif
|
|
|
|
|