diff options
Diffstat (limited to 'atk/atktext.c')
-rw-r--r-- | atk/atktext.c | 4 |
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; } /** |