[java-atk-wrapper] JNI: organise some debug
- From: Magdalen Berns <mberns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] JNI: organise some debug
- Date: Sun, 1 Mar 2015 22:35:21 +0000 (UTC)
commit 74b7d9692dc85fe1f8683dd0c42525a33946dee6
Author: Magdalen Berns <m berns thismagpie com>
Date: Sun Mar 1 22:34:02 2015 +0000
JNI: organise some debug
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=745386
jni/src/jawimpl.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/jni/src/jawimpl.c b/jni/src/jawimpl.c
index 9a82dc4..4ba354a 100644
--- a/jni/src/jawimpl.c
+++ b/jni/src/jawimpl.c
@@ -246,8 +246,8 @@ jaw_impl_get_instance (JNIEnv *jniEnv, jobject ac)
jobject global_ac = (*jniEnv)->NewGlobalRef(jniEnv, ac);
if (global_ac != NULL)
{
- guint tflag = jaw_util_get_tflag_from_jobj(jniEnv, global_ac);
- jaw_impl = g_object_new( JAW_TYPE_IMPL(tflag), NULL );
+ gint tflag = jaw_util_get_tflag_from_jobj(jniEnv, global_ac);
+ jaw_impl = g_object_new(JAW_TYPE_IMPL(tflag), NULL );
if (jaw_impl != NULL)
{
JawObject *jaw_obj = JAW_OBJECT(jaw_impl);
@@ -263,17 +263,15 @@ jaw_impl_get_instance (JNIEnv *jniEnv, jobject ac)
g_warning("\n *** jaw_impl_get_instance: jaw_obj == NULL *** \n");
return NULL;
}
+ } else {
+ g_warning("\n *** jaw_impl_get_instance: jaw_impl == NULL *** \n");
}
} else {
g_warning("\n *** jaw_impl_get_instance: global_ac == NULL *** \n");
return NULL;
}
}
- if (jaw_impl != NULL)
- return jaw_impl;
- else
- g_warning("\n *** jaw_impl_get_instance: jaw_impl == NULL *** \n");
- return NULL;
+ return jaw_impl;
}
JawImpl*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]