[java-atk-wrapper] Changes for preparation of initial release



commit 290213a6d3293da83de1edd2d4210cc77b685660
Author: Ke Wang <ke wang sun com>
Date:   Thu Jun 4 17:48:08 2009 +0800

    Changes for preparation of initial release
---
 NEWS                                            |    3 ++
 configure.in                                    |   11 +++++++
 jni/src/AtkWrapper.c                            |   33 -----------------------
 jni/src/Makefile.am                             |    4 ++-
 jni/src/jni_AtkWrapper.h                        |    8 -----
 wrapper/org/GNOME/Accessibility/AtkWrapper.java |    1 -
 6 files changed, 17 insertions(+), 43 deletions(-)

diff --git a/NEWS b/NEWS
index e69de29..34ccf30 100644
--- a/NEWS
+++ b/NEWS
@@ -0,0 +1,3 @@
+Java ATK Wrapper version 0.27.1
+================================
+Initial release.
diff --git a/configure.in b/configure.in
index 877986f..42c6965 100644
--- a/configure.in
+++ b/configure.in
@@ -2,6 +2,17 @@ AC_INIT([java-atk-wrapper],[0.27.1])
 
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
+# Before making a release, the LT_VERSION string should be modified.
+# The string is of the form C:R:A.
+# - If interfaces have been changed or added, but binary compatibility has
+#   been preserved, change to C+1:0:A+1
+# - If binary compatibility has been broken (eg removed or changed interfaces)
+#   change to C+1:0:0
+# - If the interface is the same as the previous version, change to C:R+1:A
+
+LIB_ATK_WRAPPER_LT_VERSION=0:0:0
+AC_SUBST(LIB_ATK_WRAPPER_LT_VERSION)
+
 # jni
 
 AC_CONFIG_HEADERS([config.h])
diff --git a/jni/src/AtkWrapper.c b/jni/src/AtkWrapper.c
index 711cb58..1cd9c6f 100644
--- a/jni/src/AtkWrapper.c
+++ b/jni/src/AtkWrapper.c
@@ -970,36 +970,3 @@ JNIEXPORT jboolean JNICALL Java_org_GNOME_Accessibility_AtkWrapper_dispatchKeyEv
 	return key_consumed;
 }
 
-JNIEXPORT void JNICALL Java_org_GNOME_Accessibility_AtkWrapper_dispatchEvent(
-		JNIEnv *jniEnv, jclass jClass, jobject jObject, jstring jString) {
-	jclass classAccessibleContext = (*jniEnv)->FindClass(jniEnv, "javax/accessibility/AccessibleContext");
-	jclass classAccessible = (*jniEnv)->FindClass(jniEnv, "javax/accessibility/Accessible");
-	jobject ac;
-
-	if( (*jniEnv)->IsInstanceOf(jniEnv, jObject, classAccessibleContext) ) {
-		ac = jObject;
-	} else if( (*jniEnv)->IsInstanceOf(jniEnv, jObject, classAccessible) ) {
-		jmethodID jmid = (*jniEnv)->GetMethodID(jniEnv, classAccessible, "getAccessibleContext", "()Ljavax/accessibility/AccessibleContext;");
-		ac = (*jniEnv)->CallObjectMethod(jniEnv, jObject, jmid);
-
-		if( ac != NULL ) {
-			printf("Got AccessibleContext\n");
-			if( (*jniEnv)->IsInstanceOf(jniEnv, ac, classAccessibleContext) )
-				printf("AccessibleContext type check right\n");
-		}
-	} else {
-		return;
-	}
-
-	const char *str = (*jniEnv)->GetStringUTFChars(jniEnv, jString, NULL);
-	printf("%s\n", str);
-	(*jniEnv)->ReleaseStringUTFChars(jniEnv, jString, str);
-
-	guint ret = jaw_util_get_tflag_from_jobj(jniEnv, jObject);
-	printf("jaw_util_get_tflag_from_jobj() return %d\n", ret);
-
-	/*JawImpl* impl = jaw_impl_ref_instance (ac);
-	const gchar* strName = atk_object_get_name( ATK_OBJECT(impl) );
-	printf("get_name: %s\n", strName);*/
-}
-
diff --git a/jni/src/Makefile.am b/jni/src/Makefile.am
index 612501b..5732bbc 100644
--- a/jni/src/Makefile.am
+++ b/jni/src/Makefile.am
@@ -16,7 +16,7 @@ libatk_wrapper_la_SOURCES = AtkWrapper.c \
 			    jawvalue.c \
 			    jawtable.c
 
-include_HEADERS = jni_AtkWrapper.h \
+noinst_HEADERS = jni_AtkWrapper.h \
 		  jawimpl.h \
 		  jawobject.h \
 		  jawhyperlink.h \
@@ -26,5 +26,7 @@ include_HEADERS = jni_AtkWrapper.h \
 libatk_wrapper_la_CPPFLAGS = $(JNI_INCLUDES)\
 			     $(JAW_CFLAGS)
 
+libatk_wrapper_la_LDFLAGS = -version-info $(LIB_ATK_WRAPPER_LT_VERSION)
+
 libatk_wrapper_la_LIBADD = $(JAW_LIBS)
 
diff --git a/jni/src/jni_AtkWrapper.h b/jni/src/jni_AtkWrapper.h
index 55932e4..391b0fe 100644
--- a/jni/src/jni_AtkWrapper.h
+++ b/jni/src/jni_AtkWrapper.h
@@ -28,14 +28,6 @@ extern "C" {
 #endif
 /*
  * Class:     org_GNOME_Accessibility_AtkWrapper
- * Method:    dispatchEvent
- * Signature: (Ljava/lang/Object;Ljava/lang/String;)V
- */
-JNIEXPORT void JNICALL Java_org_GNOME_Accessibility_AtkWrapper_dispatchEvent
-  (JNIEnv *, jclass, jobject, jstring);
-
-/*
- * Class:     org_GNOME_Accessibility_AtkWrapper
  * Method:    initNativeLibrary
  * Signature: ()V
  */
diff --git a/wrapper/org/GNOME/Accessibility/AtkWrapper.java b/wrapper/org/GNOME/Accessibility/AtkWrapper.java
index 486033e..3582c81 100644
--- a/wrapper/org/GNOME/Accessibility/AtkWrapper.java
+++ b/wrapper/org/GNOME/Accessibility/AtkWrapper.java
@@ -467,7 +467,6 @@ public class AtkWrapper {
 		}
 	}
 
-	public native static void dispatchEvent(java.lang.Object eventSource, String eventName);
 	public native static void initNativeLibrary();
 
 	public native static void focusNotify(javax.accessibility.AccessibleContext ac);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]