From: Matthias Clasen Date: Mon, 23 Dec 2002 18:13:46 +0000 (+0000) Subject: Don't call gtk_text_iter_backward_sentence_start() if count is zero. X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=98c47bc895788ba273d60d22f1aadd1774f2f326;p=~andy%2Fgtk Don't call gtk_text_iter_backward_sentence_start() if count is zero. 2002-12-23 Matthias Clasen * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts): Don't call gtk_text_iter_backward_sentence_start() if count is zero. (#99115) * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call move_cursor() even if the cursor hasn't moved, since it has the side effect of canceling the selection. (#81395, #98537, #9833) --- diff --git a/ChangeLog b/ChangeLog index 83bea4dce..9220aa780 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2002-12-23 Matthias Clasen + + * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts): + Don't call gtk_text_iter_backward_sentence_start() if + count is zero. (#99115) + + * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call + move_cursor() even if the cursor hasn't moved, since it has the + side effect of canceling the selection. (#81395, #98537, #9833) + 2002-12-22 Matthias Clasen * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 83bea4dce..9220aa780 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +2002-12-23 Matthias Clasen + + * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts): + Don't call gtk_text_iter_backward_sentence_start() if + count is zero. (#99115) + + * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call + move_cursor() even if the cursor hasn't moved, since it has the + side effect of canceling the selection. (#81395, #98537, #9833) + 2002-12-22 Matthias Clasen * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 83bea4dce..9220aa780 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,13 @@ +2002-12-23 Matthias Clasen + + * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts): + Don't call gtk_text_iter_backward_sentence_start() if + count is zero. (#99115) + + * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call + move_cursor() even if the cursor hasn't moved, since it has the + side effect of canceling the selection. (#81395, #98537, #9833) + 2002-12-22 Matthias Clasen * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 83bea4dce..9220aa780 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,13 @@ +2002-12-23 Matthias Clasen + + * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts): + Don't call gtk_text_iter_backward_sentence_start() if + count is zero. (#99115) + + * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call + move_cursor() even if the cursor hasn't moved, since it has the + side effect of canceling the selection. (#81395, #98537, #9833) + 2002-12-22 Matthias Clasen * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 83bea4dce..9220aa780 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,13 @@ +2002-12-23 Matthias Clasen + + * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts): + Don't call gtk_text_iter_backward_sentence_start() if + count is zero. (#99115) + + * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call + move_cursor() even if the cursor hasn't moved, since it has the + side effect of canceling the selection. (#81395, #98537, #9833) + 2002-12-22 Matthias Clasen * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 83bea4dce..9220aa780 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +2002-12-23 Matthias Clasen + + * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts): + Don't call gtk_text_iter_backward_sentence_start() if + count is zero. (#99115) + + * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call + move_cursor() even if the cursor hasn't moved, since it has the + side effect of canceling the selection. (#81395, #98537, #9833) + 2002-12-22 Matthias Clasen * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index d81e1847f..4db227380 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -3302,6 +3302,9 @@ gtk_text_iter_backward_sentence_starts (GtkTextIter *iter, { g_return_val_if_fail (iter != NULL, FALSE); + if (count == 0) + return FALSE; + if (count < 0) return gtk_text_iter_forward_sentence_ends (iter, -count);