diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet142.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/Snippet142.d	Wed Aug 25 23:08:27 2010 +0200
+++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet142.d	Wed Sep 15 16:42:28 2010 +0200
@@ -30,7 +30,7 @@
 
 import java.lang.all;
 
-import tango.core.Thread;
+//import tango.core.Thread;
 import tango.io.Stdout;
 
 void main(String[] args) {
@@ -48,7 +48,7 @@
     Thread thread = new Thread({
         Event event;
         try {
-            Thread.sleep(300/1000.);
+            Thread.sleep(300);
         } catch (InterruptedException e) {}
         event = new Event();
         event.type = SWT.MouseMove;
@@ -56,13 +56,13 @@
         event.y = pt.y;
         display.post(event);
         try {
-            Thread.sleep(300/1000.0);
+            Thread.sleep(300);
         } catch (InterruptedException e) {}
         event.type = SWT.MouseDown;
         event.button = 1;
         display.post(event);
         try {
-            Thread.sleep(300/1000.0);
+            Thread.sleep(300);
         } catch (InterruptedException e) {}
         event.type = SWT.MouseUp;
         display.post(event);