diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.d @ 109:8ae65ae167f5

Updated swt win32 for DMD 1.063 and latest Tango trunk.
author Jacob Carlborg <doob@me.com>
date Wed, 15 Sep 2010 16:42:28 +0200
parents 69b1fa94a4a8
children 9f4c18c268b2
line wrap: on
line diff
--- a/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.d	Wed Aug 25 23:08:27 2010 +0200
+++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.d	Wed Sep 15 16:42:28 2010 +0200
@@ -28,7 +28,7 @@
 
 import java.lang.all;
 
-import tango.core.Thread;
+//import tango.core.Thread;
 import tango.text.Unicode;
 
 void main(String[] args) {
@@ -58,12 +58,12 @@
             event.character = ch;
             display.post(event);
             try {
-                Thread.sleep(10/1000.);
+                Thread.sleep(10);
             } catch (InterruptedException e) {}
             event.type = SWT.KeyUp;
             display.post(event);
             try {
-                Thread.sleep(100/1000.0);
+                Thread.sleep(100);
             } catch (InterruptedException e) {}
             if (shift) {
                 event = new Event();