Don't call gtk_text_iter_backward_sentence_start() if count is zero.

2002-12-23  Matthias Clasen  <maclas@gmx.de>

	* 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)
This commit is contained in:
Matthias Clasen 2002-12-23 18:13:46 +00:00 committed by Matthias Clasen
parent decacd40a6
commit 98c47bc895
7 changed files with 63 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2002-12-23 Matthias Clasen <maclas@gmx.de>
* 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 <maclas@gmx.de>
* gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes

View File

@ -1,3 +1,13 @@
2002-12-23 Matthias Clasen <maclas@gmx.de>
* 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 <maclas@gmx.de>
* gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes

View File

@ -1,3 +1,13 @@
2002-12-23 Matthias Clasen <maclas@gmx.de>
* 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 <maclas@gmx.de>
* gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes

View File

@ -1,3 +1,13 @@
2002-12-23 Matthias Clasen <maclas@gmx.de>
* 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 <maclas@gmx.de>
* gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes

View File

@ -1,3 +1,13 @@
2002-12-23 Matthias Clasen <maclas@gmx.de>
* 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 <maclas@gmx.de>
* gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes

View File

@ -1,3 +1,13 @@
2002-12-23 Matthias Clasen <maclas@gmx.de>
* 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 <maclas@gmx.de>
* gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes

View File

@ -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);