[java-atk-wrapper] Make jaw_object_get_parent return null when getAccessibleParent returns null
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Make jaw_object_get_parent return null when getAccessibleParent returns null
- Date: Sun, 30 Jun 2019 19:43:51 +0000 (UTC)
commit 35f8681e10685850d72a9a9563759ed0d6569e29
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Sun Jun 30 21:44:44 2019 +0200
Make jaw_object_get_parent return null when getAccessibleParent returns null
Otherwise some accessibility tools get confused
jni/src/jawobject.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/jni/src/jawobject.c b/jni/src/jawobject.c
index 5806a00..3ced9a4 100644
--- a/jni/src/jawobject.c
+++ b/jni/src/jawobject.c
@@ -220,9 +220,8 @@ jaw_object_get_parent(AtkObject *atk_obj)
return parent_obj;
}
- // FIXME: Should we rather return null?
- g_warning("didn't find parent, returning root");
- return ATK_OBJECT(atk_get_root());
+ g_warning("didn't find parent, returning null");
+ return NULL;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]