Patch: Label fixes

Tom Tromey
Fri Nov 7 19:23:00 GMT 2003

>>>>> "Tom" == Thomas Fitzsimmons <> writes:

Tom> This patch reverts the change made here:
Tom> 2003-07-24  Thomas Fitzsimmons  <>
Tom> 	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create):
Tom> 	Don't pack label in an event box.
Tom> and implements new methods that "unwrap" the label from the event box.

This looks good, thanks.  Just one comment...

Tom> +Java_gnu_java_awt_peer_gtk_GtkLabelPeer_setText
Tom> +  (JNIEnv *env, jobject obj, jstring text)
Tom> +{
Tom> ...
Tom> +  str = (*env)->GetStringUTFChars (env, text, 0);

You never release the characters in this function.


More information about the Java-patches mailing list