summaryrefslogtreecommitdiff
path: root/java/eclipse/files/post-patch-plugins-swt-mozilla-gtk-swt-browser-MozillaDelegate.java
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2008-09-06 19:30:17 +0000
committerGreg Lewis <glewis@FreeBSD.org>2008-09-06 19:30:17 +0000
commit371035ab61bfc6d32fa726bcb15caab6919c9d62 (patch)
tree34f8ef2833c9c0d09bb2a4c6cc980d8c51b4e1a1 /java/eclipse/files/post-patch-plugins-swt-mozilla-gtk-swt-browser-MozillaDelegate.java
parentUpdate to 0.16.0.20080905; it works with GTK+ 2.14.x (current in MC CVS). (diff)
. Update to Eclipse Europa, copied over from eclipse-devel.
Diffstat (limited to 'java/eclipse/files/post-patch-plugins-swt-mozilla-gtk-swt-browser-MozillaDelegate.java')
-rw-r--r--java/eclipse/files/post-patch-plugins-swt-mozilla-gtk-swt-browser-MozillaDelegate.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/java/eclipse/files/post-patch-plugins-swt-mozilla-gtk-swt-browser-MozillaDelegate.java b/java/eclipse/files/post-patch-plugins-swt-mozilla-gtk-swt-browser-MozillaDelegate.java
new file mode 100644
index 000000000000..86aeebc3b326
--- /dev/null
+++ b/java/eclipse/files/post-patch-plugins-swt-mozilla-gtk-swt-browser-MozillaDelegate.java
@@ -0,0 +1,21 @@
+--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java.orig 2007-06-26 04:57:02.000000000 +0900
++++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java 2007-09-12 13:17:45.000000000 +0900
+@@ -26,14 +26,17 @@
+ static final int STOP_PROPOGATE = 1;
+
+ static boolean IsLinux;
++ static boolean IsFreeBSD;
+ static {
+ String osName = System.getProperty ("os.name").toLowerCase (); //$NON-NLS-1$
+ IsLinux = osName.startsWith ("linux"); //$NON-NLS-1$
++ IsFreeBSD = osName.startsWith ("freebsd"); //$NON-NLS-1$
++
+ }
+
+ MozillaDelegate (Browser browser) {
+ super ();
+- if (!IsLinux) {
++ if (!IsLinux && !IsFreeBSD) {
+ browser.dispose ();
+ SWT.error (SWT.ERROR_NO_HANDLES, null, " [Unsupported platform]"); //$NON-NLS-1$
+ }