diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Widget.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/Widget.d	Fri Mar 27 11:10:45 2009 +0100
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Widget.d	Fri Mar 27 11:43:53 2009 +0100
@@ -26,7 +26,7 @@
 import org.eclipse.swt.widgets.TypedListener;
 
 import tango.stdc.string;
-import tango.core.Thread;
+import java.lang.Thread;
 
 
 /**
@@ -468,7 +468,7 @@
 public void checkWidget () {
     Display display = this.display;
     if (display is null) error (SWT.ERROR_WIDGET_DISPOSED);
-    if (display.thread !is Thread.getThis ()) error (SWT.ERROR_THREAD_INVALID_ACCESS);
+    if (display.thread !is Thread.currentThread ()) error (SWT.ERROR_THREAD_INVALID_ACCESS);
     if ((state & DISPOSED) !is 0) error (SWT.ERROR_WIDGET_DISPOSED);
 }