2004/01/13 12:00:24
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:44:24 +0000 (07:44 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:44:24 +0000 (07:44 +0000)
darcs-hash:20040130074424-2ba56-3a4e8c35bae2c031e3be5248b0814c04c68ca517.gz

src/org/xwt/plat/Win32.java
src/org/xwt/plat/X11.java

index b56a3ef..3140898 100644 (file)
@@ -43,16 +43,7 @@ public class Win32 extends GCJ {
 
     public Win32() { }
 
-    public void init() {
-        String logfile = getTempPath() + "xwt-log.txt";
-        try {
-            PrintStream ps = new PrintStream(new FileOutputStream(logfile));
-            System.setOut(ps);
-            System.setErr(ps);
-        } catch (Throwable e) {
-            criticalAbort("Exception while attempting to redirect logging to " + logfile + " -- " + e);
-        }
-
+    public void postInit() {
         new Thread() { public void run() { natInit(); } }.start();
         messagePumpStarted.block();
     }
index a6ce65b..a770994 100644 (file)
@@ -46,7 +46,7 @@ public class X11 extends POSIX {
     private native void natInit();
 
     public X11() { }
-    public void init() {
+    public void postInit() {
         natInit();
         (new Thread() { public void run() { eventThread(); } }).start();
     }