summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2002-12-23 18:13:46 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-12-23 18:13:46 +0000
commit98c47bc895788ba273d60d22f1aadd1774f2f326 (patch)
tree45f62fa07b3f3849465d82cd25753507da34779e
parentdecacd40a6171bb1bb8245e748c29f71ba942bb5 (diff)
downloadgtk+-98c47bc895788ba273d60d22f1aadd1774f2f326.tar.gz
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)
-rw-r--r--ChangeLog10
-rw-r--r--ChangeLog.pre-2-1010
-rw-r--r--ChangeLog.pre-2-210
-rw-r--r--ChangeLog.pre-2-410
-rw-r--r--ChangeLog.pre-2-610
-rw-r--r--ChangeLog.pre-2-810
-rw-r--r--gtk/gtktextiter.c3
7 files changed, 63 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 83bea4dce4..9220aa7804 100644
--- 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
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 83bea4dce4..9220aa7804 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 83bea4dce4..9220aa7804 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 83bea4dce4..9220aa7804 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 83bea4dce4..9220aa7804 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 83bea4dce4..9220aa7804 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c
index d81e1847f9..4db227380e 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);