[cp-patches] FYI: GTK Window fix

Roman Kennke roman.kennke at aicas.com
Wed Oct 18 16:21:20 UTC 2006


In GtkWindowPeer we really should call update() on the Window when an
UPDATE PaintEvent arrives. The testcase in 

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29502

demonstrates that. (I'll try to add that to Mauve).

That testcase shows another problem with Window event handling (window
not closing), which is also fixed by this patch.

2006-10-18  Roman Kennke  <kennke at aicas.com>

        PR 29502
        * gnu/java/awt/peer/gtk/GtkWindowPeer.java
        (updateComponent): Don't override this here.
        * java/awt/Window.java
        (addWindowListener): Ignore null listener. Set newEventsOnly
flag.
        (addWindowFocusListener): Ignore null listener. Set
newEventsOnly
        flag.
        (addWindowStateListener): Ignore null listener. Set
newEventsOnly
        flag.

/Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 4629 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20061018/6cfd8251/patch.bin


More information about the Classpath-patches mailing list