]> Pileus Git - ~andy/gtk/commitdiff
Don't call gtk_text_iter_backward_sentence_start() if count is zero.
authorMatthias Clasen <maclas@gmx.de>
Mon, 23 Dec 2002 18:13:46 +0000 (18:13 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 23 Dec 2002 18:13:46 +0000 (18:13 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextiter.c

index 83bea4dce4d4341ae418cd4f5931b15a84d0e68c..9220aa7804826f393158d292e2f6db468b00ae8f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 83bea4dce4d4341ae418cd4f5931b15a84d0e68c..9220aa7804826f393158d292e2f6db468b00ae8f 100644 (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
index 83bea4dce4d4341ae418cd4f5931b15a84d0e68c..9220aa7804826f393158d292e2f6db468b00ae8f 100644 (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
index 83bea4dce4d4341ae418cd4f5931b15a84d0e68c..9220aa7804826f393158d292e2f6db468b00ae8f 100644 (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
index 83bea4dce4d4341ae418cd4f5931b15a84d0e68c..9220aa7804826f393158d292e2f6db468b00ae8f 100644 (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
index 83bea4dce4d4341ae418cd4f5931b15a84d0e68c..9220aa7804826f393158d292e2f6db468b00ae8f 100644 (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
index d81e1847f9216a5c92dd1122bb7503fc4625b43b..4db227380ea33ee45c6010dce824e340e37fcd32 100644 (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);