diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Display.d @ 47:65761bc28ab2

swt linux again compilable for d1.
author Frank Benoit <benoit@tionex.de>
date Fri, 27 Mar 2009 11:43:53 +0100
parents f713da8bc051
children ddbfe84d86df
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Display.d	Fri Mar 27 11:10:45 2009 +0100
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Display.d	Fri Mar 27 11:43:53 2009 +0100
@@ -46,7 +46,7 @@
 import tango.stdc.string;
 import java.lang.all;
 
-import tango.core.Thread;
+import java.lang.Thread;
 
 /**
  * Instances of this class are responsible for managing the
@@ -763,7 +763,7 @@
 
 protected override void checkDevice () {
     if (thread is null) error (SWT.ERROR_WIDGET_DISPOSED);
-    if (thread !is Thread.getThis ()) error (SWT.ERROR_THREAD_INVALID_ACCESS);
+    if (thread !is Thread.currentThread ()) error (SWT.ERROR_THREAD_INVALID_ACCESS);
     if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);
 }
 
@@ -907,7 +907,7 @@
  */
 protected override void create (DeviceData data) {
     checkSubclass ();
-    checkDisplay(thread = Thread.getThis (), false);
+    checkDisplay(thread = Thread.currentThread (), false);
     createDisplay (data);
     register (this);
     if (Default is null) Default = this;
@@ -1422,7 +1422,7 @@
  * @return the current display
  */
 public static Display getCurrent () {
-    return findDisplay (Thread.getThis ());
+    return findDisplay (Thread.currentThread ());
 }
 
 int getCaretBlinkTime () {
@@ -2616,7 +2616,7 @@
 }
 
 bool isValidThread () {
-    return thread is Thread.getThis ();
+    return thread is Thread.currentThread ();
 }
 
 /**
@@ -4153,7 +4153,7 @@
 public void wake () {
     synchronized (Device.classinfo) {
         if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);
-        if (thread is Thread.getThis ()) return;
+        if (thread is Thread.currentThread ()) return;
         wakeThread ();
     }
 }