[java-atk-wrapper] jawimpl: initialise with compatible pointer type
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] jawimpl: initialise with compatible pointer type
- Date: Wed, 3 Dec 2014 16:21:49 +0000 (UTC)
commit 347c21b6a30fdfe8afd450029ad4f48736cd77c7
Author: Magdalen Berns <m berns thismagpie com>
Date: Wed Dec 3 16:15:40 2014 +0000
jawimpl: initialise with compatible pointer type
atk_object_add_relationship need to have an AtkObject as the last
argument so cast jaw_object_add_relationship properly
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=741073
jni/src/jawimpl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jni/src/jawimpl.c b/jni/src/jawimpl.c
index 9b7ad69..9a40615 100644
--- a/jni/src/jawimpl.c
+++ b/jni/src/jawimpl.c
@@ -778,7 +778,7 @@ jaw_impl_ref_relation_set (AtkObject *atk_obj)
"()Ljavax/accessibility/AccessibleContext;");
jobject target_ac = (*jniEnv)->CallObjectMethod( jniEnv, jtarget, jmid );
- AtkObject *target_obj = jaw_impl_get_instance( jniEnv, target_ac );
+ AtkObject *target_obj = (AtkObject*)jaw_impl_get_instance( jniEnv, target_ac );
atk_object_add_relationship(atk_obj, rel_type, target_obj);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]