Patch: FYI: Get xlib peers working again - OK for branch-4.0?

Scott Gilbertson scottg@mantatest.com
Fri Jul 15 16:23:00 GMT 2005


I just checked in these changes to trunk.  The xlib peers had been busted
for a long time, and these changes get them working at least as well as they
did a year ago (using my large application for testing).  The changes
involve only xlib peer source files.  I've reverted back to using a separate
thread to read the native event queue by stubbing out iterateNativeQueue,
etc. in XToolkit.  The single-thread mechanism was causing problems for
timers.

OK to commit the equivalent patch to branch-4.0?

2005-07-15  Scott Gilbertson  <scottg@mantatest.com>

 * gnu/awt/xlib/XCanvasPeer.java (attributes): New field.
 (eventMask): New field.
 (XCanvasPeer(Component)): Use attributes field.
 (setBackground): Implemented.
 (setEventMask): Process mask only if changed.
 * gnu/awt/xlib/XEventLoop.java (class): Iplement Runnable.
 (eventLoopThread): New field.
 (XEventLoop(Display,EventQueue)): Start eventLoopThread.
 (interrupt): Removed.
 (run): New method.
 * gnu/awt/xlib/XEventQueue.java (getNextEvent): Process Container
 and Component events.
 * gnu/awt/xlib/XFramePeer.java (processingConfigureNotify): New
 field.
 (configureNotify): Set and clear processingConfigureNotify.
 (setBounds): Process only if processingConfigureNotify is false.
 (toBack): Implemented.
 (toFront): Implemented.
 * gnu/awt/xlib/XGraphics.java (setColor): Ignore null color.
 * gnu/awt/xlib/XGraphicsConfiguration.java (getPixel): Ignore null
 color.
 * gnu/awt/xlib/XToolkit.java (nativeQueueEmpty): Always return true.
 (wakeNativeQueue): Do nothing.
 (iterateNativeQueue): Do queue.wait if blocking.
 * gnu/gcj/xlib/Font.java (loadFont): New method.
 (loadFontImpl): Renamed native method, was loadFont.
 * gnu/gcj/xlib/Window.java (toFront): New method.
 (toBack): New method.
 * gnu/gcj/xlib/natFont.cc (loadFontImpl): Renamed method, was
 loadFont.
 * gnu/gcj/xlib/natWindow.cc (toBack): New method.
 (toFront): New method.
 * gnu/gcj/xlib/natXAnyEvent.cc (loadNext): Removed timeout.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_20050715_getXlibWorking.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050715/43c31e80/attachment.txt>


More information about the Java-patches mailing list