summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-03-05 17:09:29 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-03-05 17:09:29 +0000
commit9c00c07c7822f62550d18f0d0627362360e5de7e (patch)
tree20c23f74467bf52b3ec9c5dd0e19f5627ccb2316
parentd30eeb5b50d271b7fd08b9917957bfe4682b8cf2 (diff)
parent951b1e9b9fd47e3b36c0bd43f0d7782e9dc0eb1a (diff)
downloadatk-9c00c07c7822f62550d18f0d0627362360e5de7e.tar.gz
Merge branch 'atktext-documentation-fix' into 'master'
Fix failure value for atk_text_get_caret_offset See merge request GNOME/atk!14
-rw-r--r--atk/atktext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/atk/atktext.c b/atk/atktext.c
index f10885d..a974cd5 100644
--- a/atk/atktext.c
+++ b/atk/atktext.c
@@ -636,7 +636,7 @@ gchar* atk_text_get_string_at_offset (AtkText *text,
*
* Gets the offset of the position of the caret (cursor).
*
- * Returns: the character offset of the position of the caret or 0 if
+ * Returns: the character offset of the position of the caret or -1 if
* the caret is not located inside the element or in the case of
* any other failure.
**/
@@ -652,7 +652,7 @@ atk_text_get_caret_offset (AtkText *text)
if (iface->get_caret_offset)
return (*(iface->get_caret_offset)) (text);
else
- return 0;
+ return -1;
}
/**