From 740f871a15b5bf0282bd6bbf1f4fc3423d04ce1b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 14 Jan 2003 01:07:58 +0000 Subject: Skip invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and GTK_MOVEMENT_WORDS. * gtk/gtktextiter.c, gtk/gtktextiter.h: Add some variant movement functions which skip invisible chars, and do some cleanups. * gtk/gtk-sections.txt: Add new GtkTextIter functions. --- gtk/gtktextiter.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gtk/gtktextiter.h') diff --git a/gtk/gtktextiter.h b/gtk/gtktextiter.h index 0c8c56cc95..0b6f245174 100644 --- a/gtk/gtktextiter.h +++ b/gtk/gtktextiter.h @@ -191,6 +191,13 @@ gboolean gtk_text_iter_forward_word_ends (GtkTextIter *iter, gboolean gtk_text_iter_backward_word_starts (GtkTextIter *iter, gint count); +gboolean gtk_text_iter_forward_visible_word_end (GtkTextIter *iter); +gboolean gtk_text_iter_backward_visible_word_start (GtkTextIter *iter); +gboolean gtk_text_iter_forward_visible_word_ends (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_visible_word_starts (GtkTextIter *iter, + gint count); + gboolean gtk_text_iter_forward_sentence_end (GtkTextIter *iter); gboolean gtk_text_iter_backward_sentence_start (GtkTextIter *iter); gboolean gtk_text_iter_forward_sentence_ends (GtkTextIter *iter, @@ -209,6 +216,13 @@ gboolean gtk_text_iter_forward_cursor_positions (GtkTextIter *iter, gboolean gtk_text_iter_backward_cursor_positions (GtkTextIter *iter, gint count); +gboolean gtk_text_iter_forward_visible_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_backward_visible_cursor_position (GtkTextIter *iter); +gboolean gtk_text_iter_forward_visible_cursor_positions (GtkTextIter *iter, + gint count); +gboolean gtk_text_iter_backward_visible_cursor_positions (GtkTextIter *iter, + gint count); + void gtk_text_iter_set_offset (GtkTextIter *iter, gint char_offset); -- cgit v1.2.1