I'm having a problem trying to call Entry::setText(...) with an element
of an array/Vector. The element is set correctly, but after that the
rest of the array/Vector is cleared to empty strings. From what I've
glanced in the source code, I'm suspecting that
(*env)->ReleaseStringUTFChars(env, text, text_g);
in
JNIEXPORT void JNICALL Java_org_gnu_gtk_Entry_gtk_1entry_1set_1text
(JNIEnv *env, jclass cls, jobject entry, jstring text)
is to blame, but I'm not sure. Does anyone know of a way to fix this, or
am I going to have to resort to cloning everything I throw into
Entry::setText()?
Thanks,
Adam
|