Hi,

Small bug fix.  Some gtk code does not compile since it is
not official C standard code: variable declaration after statements.

The patch attached fixes it.

FYI, we just updated SableVM ( http://www.sablevm.org/ ) with a yesterday
Classpath CVS snapshot in our staging branch.
http://devel.sablevm.org/wiki/Getting for info on how to get it.


David

---

David B�langer
Graduate Student
School of Computer Science
McGill University
Office: MC226

Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt

Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
===================================================================
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c   (revision 1440)
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c   (working copy)
@@ -249,9 +249,11 @@
 item_activate (GtkItem *item __attribute__((unused)),
               struct item_event_hook_info *ie)
 {
+  jstring label;
+
   gdk_threads_leave ();
 
-  jstring label = (*gdk_env)->NewStringUTF (gdk_env, ie->label);
+  label = (*gdk_env)->NewStringUTF (gdk_env, ie->label);
   (*gdk_env)->CallVoidMethod (gdk_env, ie->peer_obj,
                              choicePostItemEventID,
                              label,
_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to