Mercurial > projects > dwt2
diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/dnd/Clipboard.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/dnd/Clipboard.d Fri Mar 27 11:10:45 2009 +0100 +++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/dnd/Clipboard.d Fri Mar 27 11:43:53 2009 +0100 @@ -27,7 +27,7 @@ import java.lang.all; -import tango.core.Thread; +import java.lang.Thread; static import tango.stdc.string; /** @@ -82,7 +82,7 @@ display = Display.getDefault(); } } - if (display.getThread() !is Thread.getThis()) { + if (display.getThread() !is Thread.currentThread()) { DND.error(SWT.ERROR_THREAD_INVALID_ACCESS); } this.display = display; @@ -147,7 +147,7 @@ protected void checkWidget () { Display display = this.display; if (display is null) DND.error (SWT.ERROR_WIDGET_DISPOSED); - if (display.getThread() !is Thread.getThis ()) DND.error (SWT.ERROR_THREAD_INVALID_ACCESS); + if (display.getThread() !is Thread.currentThread ()) DND.error (SWT.ERROR_THREAD_INVALID_ACCESS); if (display.isDisposed()) DND.error(SWT.ERROR_WIDGET_DISPOSED); } @@ -215,7 +215,7 @@ */ public void dispose () { if (isDisposed()) return; - if (display.getThread() !is Thread.getThis()) DND.error(SWT.ERROR_THREAD_INVALID_ACCESS); + if (display.getThread() !is Thread.currentThread()) DND.error(SWT.ERROR_THREAD_INVALID_ACCESS); display = null; }