summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-10-23 19:19:10 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-10-23 19:19:10 +0000
commit85cdc1cec3df302932e67a8716c53961586e28b1 (patch)
treeb1cccd07aaa8fb3939153007864c42f0655f9ac3 /gtk/gtktextiter.c
parent9894b89bd97271e6f6c60214587ca45686ac5223 (diff)
downloadgtk+-85cdc1cec3df302932e67a8716c53961586e28b1.tar.gz
fix return value, #61714 (Vitaly Tishkov)
2001-10-23 Havoc Pennington <hp@redhat.com> * 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
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r--gtk/gtktextiter.c18
1 files changed, 12 insertions, 6 deletions
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);
}
/**