[java-atk-wrapper] JNI: create jaw_object_peek_parent
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] JNI: create jaw_object_peek_parent
- Date: Wed, 10 Jun 2015 13:05:48 +0000 (UTC)
commit c97520ea1a05f8751ace658556656d2662e7194b
Author: Magdalen Berns <m berns thismagpie com>
Date: Wed Jun 10 14:04:58 2015 +0100
JNI: create jaw_object_peek_parent
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=750703
HACKING | 2 --
jni/src/jawobject.c | 8 ++++++++
jni/src/jawobject.h | 1 +
3 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/HACKING b/HACKING
index a35ce15..2126d6d 100644
--- a/HACKING
+++ b/HACKING
@@ -39,8 +39,6 @@ TODO Currently Not fully documented by ATK
Object base class:
AtkFunction
implementor_ref_accessible
- peek_parent
- set_parent
set_role
add_relationship
remove_relationship
diff --git a/jni/src/jawobject.c b/jni/src/jawobject.c
index cd41aa1..dad2259 100644
--- a/jni/src/jawobject.c
+++ b/jni/src/jawobject.c
@@ -148,6 +148,14 @@ static AtkObject* jaw_object_get_parent(AtkObject *atk_obj)
return ATK_OBJECT(jparent);
}
+AtkObject* jaw_object_peek_parent(AtkObject *atk_obj)
+{
+ AtkObject *atk_parent = jaw_object_get_parent(atk_obj);
+ if (atk_parent != NULL)
+ return atk_parent;
+ return NULL;
+}
+
static void
jaw_object_set_parent(AtkObject *atk_obj, AtkObject *parent)
{
diff --git a/jni/src/jawobject.h b/jni/src/jawobject.h
index ad9e159..03254d2 100644
--- a/jni/src/jawobject.h
+++ b/jni/src/jawobject.h
@@ -59,6 +59,7 @@ gpointer jaw_object_get_interface_data (JawObject*, guint);
void jaw_object_notify_state_change(AtkObject *atk_obj,
const gchar *state,
gboolean state_set);
+AtkObject *jaw_object_peek_parent(AtkObject *atk_obj);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]