[java-atk-wrapper] Fixed bug 595234 - The caret position will not be changed when input text with gok composer



commit 242478a35f4272879a30dced21c171908e6a80c4
Author: Ke Wang <ke wang sun com>
Date:   Tue Sep 15 16:33:24 2009 +0800

    Fixed bug 595234 - The caret position will not be  changed when input text with gok composer

 jni/src/jaweditabletext.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/jni/src/jaweditabletext.c b/jni/src/jaweditabletext.c
index 1e92093..f282b48 100644
--- a/jni/src/jaweditabletext.c
+++ b/jni/src/jaweditabletext.c
@@ -115,6 +115,8 @@ jaw_editable_text_insert_text (AtkEditableText *text,
 
 	jstring jstr = (*jniEnv)->NewStringUTF(jniEnv, string);
 	(*jniEnv)->CallVoidMethod(jniEnv, atk_editable_text, jmid, jstr, (jint)*position);
+	*position = *position + length;
+	atk_text_set_caret_offset(ATK_TEXT(jaw_obj), *position);
 }
 
 void



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