comparison 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
comparison
equal deleted inserted replaced
46:17310ba3c1bc 47:65761bc28ab2
24 import org.eclipse.swt.widgets.EventTable; 24 import org.eclipse.swt.widgets.EventTable;
25 import org.eclipse.swt.widgets.Listener; 25 import org.eclipse.swt.widgets.Listener;
26 import org.eclipse.swt.widgets.TypedListener; 26 import org.eclipse.swt.widgets.TypedListener;
27 27
28 import tango.stdc.string; 28 import tango.stdc.string;
29 import tango.core.Thread; 29 import java.lang.Thread;
30 30
31 31
32 /** 32 /**
33 * This class is the abstract superclass of all user interface objects. 33 * This class is the abstract superclass of all user interface objects.
34 * Widgets are created, disposed and issue notification to listeners 34 * Widgets are created, disposed and issue notification to listeners
466 * </ul> 466 * </ul>
467 */ 467 */
468 public void checkWidget () { 468 public void checkWidget () {
469 Display display = this.display; 469 Display display = this.display;
470 if (display is null) error (SWT.ERROR_WIDGET_DISPOSED); 470 if (display is null) error (SWT.ERROR_WIDGET_DISPOSED);
471 if (display.thread !is Thread.getThis ()) error (SWT.ERROR_THREAD_INVALID_ACCESS); 471 if (display.thread !is Thread.currentThread ()) error (SWT.ERROR_THREAD_INVALID_ACCESS);
472 if ((state & DISPOSED) !is 0) error (SWT.ERROR_WIDGET_DISPOSED); 472 if ((state & DISPOSED) !is 0) error (SWT.ERROR_WIDGET_DISPOSED);
473 } 473 }
474 474
475 void createHandle (int index) { 475 void createHandle (int index) {
476 } 476 }