From 85cdc1cec3df302932e67a8716c53961586e28b1 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 23 Oct 2001 19:19:10 +0000 Subject: [PATCH] fix return value, #61714 (Vitaly Tishkov) 2001-10-23 Havoc Pennington * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix return value, #61714 (Vitaly Tishkov) (gtk_text_iter_backward_sentence_starts): ditto (gtk_text_iter_backward_word_starts): ditto (gtk_text_iter_forward_word_ends): ditto (gtk_text_iter_forward_sentence_ends): ditto (gtk_text_iter_backward_cursor_positions): ditto --- ChangeLog | 10 ++++++++++ ChangeLog.pre-2-0 | 10 ++++++++++ ChangeLog.pre-2-10 | 10 ++++++++++ ChangeLog.pre-2-2 | 10 ++++++++++ ChangeLog.pre-2-4 | 10 ++++++++++ ChangeLog.pre-2-6 | 10 ++++++++++ ChangeLog.pre-2-8 | 10 ++++++++++ gtk/gtktextiter.c | 18 ++++++++++++------ 8 files changed, 82 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1f4b156809..28cd96981f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix + return value, #61714 (Vitaly Tishkov) + (gtk_text_iter_backward_sentence_starts): ditto + (gtk_text_iter_backward_word_starts): ditto + (gtk_text_iter_forward_word_ends): ditto + (gtk_text_iter_forward_sentence_ends): ditto + (gtk_text_iter_backward_cursor_positions): ditto + 2001-10-23 Havoc Pennington * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 1f4b156809..28cd96981f 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,13 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix + return value, #61714 (Vitaly Tishkov) + (gtk_text_iter_backward_sentence_starts): ditto + (gtk_text_iter_backward_word_starts): ditto + (gtk_text_iter_forward_word_ends): ditto + (gtk_text_iter_forward_sentence_ends): ditto + (gtk_text_iter_backward_cursor_positions): ditto + 2001-10-23 Havoc Pennington * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1f4b156809..28cd96981f 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix + return value, #61714 (Vitaly Tishkov) + (gtk_text_iter_backward_sentence_starts): ditto + (gtk_text_iter_backward_word_starts): ditto + (gtk_text_iter_forward_word_ends): ditto + (gtk_text_iter_forward_sentence_ends): ditto + (gtk_text_iter_backward_cursor_positions): ditto + 2001-10-23 Havoc Pennington * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 1f4b156809..28cd96981f 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,13 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix + return value, #61714 (Vitaly Tishkov) + (gtk_text_iter_backward_sentence_starts): ditto + (gtk_text_iter_backward_word_starts): ditto + (gtk_text_iter_forward_word_ends): ditto + (gtk_text_iter_forward_sentence_ends): ditto + (gtk_text_iter_backward_cursor_positions): ditto + 2001-10-23 Havoc Pennington * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 1f4b156809..28cd96981f 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,13 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix + return value, #61714 (Vitaly Tishkov) + (gtk_text_iter_backward_sentence_starts): ditto + (gtk_text_iter_backward_word_starts): ditto + (gtk_text_iter_forward_word_ends): ditto + (gtk_text_iter_forward_sentence_ends): ditto + (gtk_text_iter_backward_cursor_positions): ditto + 2001-10-23 Havoc Pennington * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1f4b156809..28cd96981f 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,13 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix + return value, #61714 (Vitaly Tishkov) + (gtk_text_iter_backward_sentence_starts): ditto + (gtk_text_iter_backward_word_starts): ditto + (gtk_text_iter_forward_word_ends): ditto + (gtk_text_iter_forward_sentence_ends): ditto + (gtk_text_iter_backward_cursor_positions): ditto + 2001-10-23 Havoc Pennington * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1f4b156809..28cd96981f 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +2001-10-23 Havoc Pennington + + * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix + return value, #61714 (Vitaly Tishkov) + (gtk_text_iter_backward_sentence_starts): ditto + (gtk_text_iter_backward_word_starts): ditto + (gtk_text_iter_forward_word_ends): ditto + (gtk_text_iter_forward_sentence_ends): ditto + (gtk_text_iter_backward_cursor_positions): ditto + 2001-10-23 Havoc Pennington * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index d508eda49d..dbded85866 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -3033,7 +3033,8 @@ gtk_text_iter_forward_word_ends (GtkTextIter *iter, break; --count; } - return TRUE; + + return !gtk_text_iter_is_end (iter); } /** @@ -3066,7 +3067,8 @@ gtk_text_iter_backward_word_starts (GtkTextIter *iter, break; --count; } - return TRUE; + + return !gtk_text_iter_is_end (iter); } /** @@ -3244,7 +3246,8 @@ gtk_text_iter_forward_sentence_ends (GtkTextIter *iter, break; --count; } - return TRUE; + + return !gtk_text_iter_is_end (iter); } /** @@ -3277,7 +3280,8 @@ gtk_text_iter_backward_sentence_starts (GtkTextIter *iter, break; --count; } - return TRUE; + + return !gtk_text_iter_is_end (iter); } static gboolean @@ -3400,7 +3404,8 @@ gtk_text_iter_forward_cursor_positions (GtkTextIter *iter, break; --count; } - return TRUE; + + return !gtk_text_iter_is_end (iter); } /** @@ -3437,7 +3442,8 @@ gtk_text_iter_backward_cursor_positions (GtkTextIter *iter, break; --count; } - return TRUE; + + return !gtk_text_iter_is_end (iter); } /**