Mercurial > projects > dwt-linux
comparison dwt/browser/MozillaDelegate.d @ 354:59b54fea05d0
Fixes for XPCOM 1.9 and anonymous classes
author | john@andLinux |
---|---|
date | Sun, 14 Dec 2008 02:13:20 -0500 |
parents | 373b48b9eaf0 |
children |
comparison
equal
deleted
inserted
replaced
353:7f3013c93a95 | 354:59b54fea05d0 |
---|---|
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwt.browser.MozillaDelegate; | 13 module dwt.browser.MozillaDelegate; |
14 | 14 |
15 import dwt.dwthelper.utils; | 15 import dwt.dwthelper.utils; |
16 | 16 |
17 import tango.io.Console; | |
18 | |
17 import dwt.DWT; | 19 import dwt.DWT; |
18 //import dwt.internal.Callback; | |
19 import dwt.internal.Converter; | 20 import dwt.internal.Converter; |
20 //import dwt.internal.gtk.GdkEvent; | |
21 import dwt.internal.gtk.OS; | 21 import dwt.internal.gtk.OS; |
22 import dwt.widgets.Display; | 22 import dwt.widgets.Display; |
23 import dwt.widgets.Event; | 23 import dwt.widgets.Event; |
24 import dwt.widgets.Listener; | 24 import dwt.widgets.Listener; |
25 import dwt.widgets.Widget; | 25 import dwt.widgets.Widget; |
36 bool hasFocus; | 36 bool hasFocus; |
37 Listener listener; | 37 Listener listener; |
38 //static Callback eventCallback; | 38 //static Callback eventCallback; |
39 // static int /*long*/ eventProc; | 39 // static int /*long*/ eventProc; |
40 static const gpointer STOP_PROPOGATE = cast(gpointer)1; | 40 static const gpointer STOP_PROPOGATE = cast(gpointer)1; |
41 | |
42 static bool IsLinux; | 41 static bool IsLinux; |
43 | 42 |
44 static this () { | 43 static this () { |
45 String osName = System.getProperty ("os.name"); //$NON-NLS-1$ | 44 String osName = System.getProperty ("os.name").toLowerCase(); //$NON-NLS-1$ |
46 IsLinux = tango.text.Util.containsPattern(osName, "linux"); //$NON-NLS-1$ | 45 IsLinux = osName.startsWith("linux"); //$NON-NLS-1$ |
47 } | 46 } |
48 | 47 |
49 this (Browser browser) { | 48 this (Browser browser) { |
50 //super (); | 49 //super (); |
51 if (!IsLinux) { | 50 if (!IsLinux) { |