Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/browser/Browser.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 | 7a2dd761a8b2 |
comparison
equal
deleted
inserted
replaced
46:17310ba3c1bc | 47:65761bc28ab2 |
---|---|
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module org.eclipse.swt.browser.Browser; | 13 module org.eclipse.swt.browser.Browser; |
14 | 14 |
15 import java.lang.all; | 15 import java.lang.all; |
16 | 16 |
17 import tango.core.Thread; | 17 import java.lang.Thread; |
18 | 18 |
19 import org.eclipse.swt.SWT; | 19 import org.eclipse.swt.SWT; |
20 import org.eclipse.swt.SWTError; | 20 import org.eclipse.swt.SWTError; |
21 import org.eclipse.swt.SWTException; | 21 import org.eclipse.swt.SWTException; |
22 import org.eclipse.swt.widgets.Composite; | 22 import org.eclipse.swt.widgets.Composite; |
127 * SWT from creating an input method context for the Browser widget. | 127 * SWT from creating an input method context for the Browser widget. |
128 */ | 128 */ |
129 if (parent !is null && !parent.isDisposed ()) { | 129 if (parent !is null && !parent.isDisposed ()) { |
130 Display display = parent.getDisplay (); | 130 Display display = parent.getDisplay (); |
131 if (display !is null) { | 131 if (display !is null) { |
132 if (display.getThread () is Thread.getThis ()) { | 132 if (display.getThread () is Thread.currentThread ()) { |
133 display.setData (NO_INPUT_METHOD, stringcast("true")); //$NON-NLS-1$ | 133 display.setData (NO_INPUT_METHOD, stringcast("true")); //$NON-NLS-1$ |
134 } | 134 } |
135 } | 135 } |
136 } | 136 } |
137 return parent; | 137 return parent; |