diff options
author | Padraig O'Briain <padraig.obriain@sun.com> | 2002-12-13 10:30:55 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2002-12-13 10:30:55 +0000 |
commit | 74e4cbfa75888f2bc40de7311a1bfa60f92777eb (patch) | |
tree | b905b75e883ffea5f912054de4dea6864b149354 /atk | |
parent | ec900295cd0474ea7a7755a0fe52ba7fd9b3a9bf (diff) | |
download | atk-74e4cbfa75888f2bc40de7311a1bfa60f92777eb.tar.gz |
Rerturn 0 instead of -1 if caret is not supported. This addresses bug
2002-12-13 Padraig O'Briain <padraig.obriain@sun.com>
* atk/atktext.c (atk_text_get_caret_offset): Rerturn 0 instead of -1
if caret is not supported. This addresses bug #101020.
* configure.in: Use third argument of AC_DEFINE to get rid of
acconfig.h.
Diffstat (limited to 'atk')
-rwxr-xr-x | atk/atktext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atk/atktext.c b/atk/atktext.c index 8c423a9..c88eba7 100755 --- a/atk/atktext.c +++ b/atk/atktext.c @@ -470,14 +470,14 @@ atk_text_get_caret_offset (AtkText *text) { AtkTextIface *iface; - g_return_val_if_fail (ATK_IS_TEXT (text), -1); + g_return_val_if_fail (ATK_IS_TEXT (text), 0); iface = ATK_TEXT_GET_IFACE (text); if (iface->get_caret_offset) return (*(iface->get_caret_offset)) (text); else - return -1; + return 0; } /** |