Hi, I was seeing lots of repaint Timers running while we only need one. Since Timers are thread safe we can just instantiate one and use that for all GtkComponentPeers instead of creating one for each peer.
2005-08-13 Mark Wielaard <[EMAIL PROTECTED]> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (repaintTimer): Make field final. Committed, Mark diff -u -r1.92 GtkComponentPeer.java --- gnu/java/awt/peer/gtk/GtkComponentPeer.java 13 Aug 2005 00:22:26 -0000 1.92 +++ gnu/java/awt/peer/gtk/GtkComponentPeer.java 14 Aug 2005 01:46:49 -0000 @@ -85,7 +85,7 @@ boolean isInRepaint; - Timer repaintTimer = new Timer (true); + static final Timer repaintTimer = new Timer (true); /* this isEnabled differs from Component.isEnabled, in that it knows if a parent is disabled. In that case Component.isEnabled
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches