<AWT Dev> Review request: 6913179 (The java.awt.FileDialog should use native GTK file chooser on linux distros)
c.cerbo at gmail.com
Wed Mar 10 13:35:28 PST 2010
the only change in this new patch is the include of <string.h> and and
The answers for Damjan:
1) Using gdk_threads_enter() and gdk_threads_leave() in
Java_sun_awt_X11_GtkFileDialogPeer_quit(..) freezes the dialog on
2) This patch is tested with the last code in the OpenJDK repository
and compiles correctly.
I think, we all have done a good job and now it's time to put the
patch in the OpenJDK.
2010/3/10 Costantino Cerbo <c.cerbo at gmail.com>:
> Hello Damjan,
> 2010/3/10 Damjan Jovanovic <damjan.jov at gmail.com>:
>> You should probably include the real header files here, like string.h
>> and jni_util.h, instead of declaring those functions yourself.
> You're right. I will do so.
>> Should we put the GDK lock statements around those 3 functions? But if
>> we should, make sure they aren't taken recursively: when called from
>> Java the GDK lock isn't taken and we must, but when called from the
>> handle_response callback function, GTK already holds that lock and we
>> must not.
> I don't know. I'll try later and let you know.
>> You've still got some C++ comments:
>> $ grep '//' b6913179.patch
> They are comments in Java classes ;-)
>> Also the patch doesn't even compile from me, fpulling the awt forest
>> to the latest and trying again...
> Yesterday I could compile without problems.
> When I go home later, I check out the last code in the repository and try again.
> Thanks for your comments and best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 36448 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20100310/d0627854/b6913179.patch
More information about the awt-dev