>>>>> "Joseph" == Joseph Wenninger <[EMAIL PROTECTED]> writes:

Joseph> First a general question, are the gtk peers in the 0.06 tarball or in
Joseph> cvs supposed to work ?

No, not completely.  There are still plenty of bugs.  AWT is in active
development.

Joseph> 1) Why is there a field native_state in the GtkMainThread
Joseph> accessed from native functions, but nowhere defined in the
Joseph> class ?

Where do you see this?  I don't see a field named native_state
anywhere.  There is "native_state_table", but it is just an ordinary C
global, not a field.

Maybe this code has changed since 0.06; I didn't look.

Joseph> 2) Any ideas, opinions, suggestions how to use the gtk peer in a (I
Joseph> think it is called) green thread environment ?

The new standard Gtk thread code uses portable locking -- it uses JNI
calls to do its work.  This should work for any threading system.
Offhand I don't know whether this has been made the default yet; you'd
have to read the source to see.

>From your reference to green threads, I assume you want to use these
AWT peers with the Sun JDK.  Note that the peer interface is not
documented.  There's no guarantee our peers will work with Sun's
implementation.

Tom


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to