[java-atk-wrapper] Add autoconf check to autogen.sh
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Add autoconf check to autogen.sh
- Date: Sat, 3 Jan 2015 23:36:40 +0000 (UTC)
commit 69c586fcc71fa35d5c99e89e7efe858511fcb048
Author: Magdalen Berns <m berns thismagpie com>
Date: Sat Jan 3 23:35:26 2015 +0000
Add autoconf check to autogen.sh
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=742284
autogen.sh | 6 ++++++
jni/src/AtkWrapper.c | 2 +-
jni/src/jawimpl.c | 4 ++--
wrapper/org/GNOME/Accessibility/AtkWrapper.java.in | 1 +
4 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 231a704..725d15e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -9,6 +9,12 @@ cd "$srcdir"
mkdir -p m4
+AUTORECONF=`which autoreconf`
+if test -z $AUTORECONF; then
+ echo "*** No autoreconf found, please intall it ***"
+ exit 1
+fi
+
PKGCONFIG=`which pkg-config`
if test -z "$PKGCONFIG"; then
echo "*** pkg-config not found, please install it ***"
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index 8a20471..6b4c1e6 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -908,7 +908,7 @@ signal_emit_handler (gpointer p)
gint newValue = get_int_value(jniEnv,
(*jniEnv)->GetObjectArrayElement(jniEnv, args, 0));
- gint prevCount = *(gint*)g_hash_table_lookup(jaw_obj->storedData,
+ gint prevCount = (gint)g_hash_table_lookup(jaw_obj->storedData,
"Previous_Count");
gint curCount = atk_text_get_character_count(ATK_TEXT(jaw_obj));
diff --git a/jni/src/jawimpl.c b/jni/src/jawimpl.c
index 5e67cb1..649a007 100644
--- a/jni/src/jawimpl.c
+++ b/jni/src/jawimpl.c
@@ -773,8 +773,8 @@ jaw_impl_ref_relation_set (AtkObject *atk_obj)
"()Ljavax/accessibility/AccessibleContext;");
jobject target_ac = (*jniEnv)->CallObjectMethod( jniEnv, jtarget, jmid );
- AtkObject *target_obj = (AtkObject*)jaw_impl_get_instance( jniEnv, target_ac );
- atk_object_add_relationship(atk_obj, rel_type, target_obj);
+ JawImpl *target_obj = jaw_impl_get_instance( jniEnv, target_ac );
+ atk_object_add_relationship(atk_obj, rel_type, (AtkObject*) target_obj);
}
}
}
diff --git a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
index 5fa4ecb..bb9ca47 100644
--- a/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
+++ b/wrapper/org/GNOME/Accessibility/AtkWrapper.java.in
@@ -24,6 +24,7 @@ import java.awt.event.*;
import java.beans.*;
import java.io.*;
import javax.accessibility.*;
+import java.awt.Toolkit;
public class AtkWrapper {
static boolean accessibilityEnabled = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]