summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Mozilla
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-11-02 11:57:24 -0400
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-11-02 11:57:24 -0400
commitd5a464227052c1e758c0c2a306ea3e3b832c9dfb (patch)
treefd6e8463e7e190fb86e761103783a8e0e756a898 /bundles/org.eclipse.swt/Eclipse SWT Mozilla
parent60a6fb6b981ba4a18d6a3abcdade50a4f3068243 (diff)
downloadeclipse.platform.swt-d5a464227052c1e758c0c2a306ea3e3b832c9dfb.tar.gz
eclipse.platform.swt-d5a464227052c1e758c0c2a306ea3e3b832c9dfb.tar.xz
eclipse.platform.swt-d5a464227052c1e758c0c2a306ea3e3b832c9dfb.zip
add OS.GTK3 flag and use everywhere instead of VERSION(3,0,0)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Mozilla')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java
index 7dbed4a3f6..a8e70e1654 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java
@@ -178,7 +178,7 @@ long /*int*/ getHandle () {
* causing the child of the GtkFixed handle to be resized to 1.
* The workaround is to embed Mozilla into a GtkHBox handle.
*/
- if (OS.GTK_VERSION >= OS.VERSION (3, 0, 0)) {
+ if (OS.GTK3) {
embedHandle = OS.gtk_box_new (OS.GTK_ORIENTATION_HORIZONTAL, 0);
OS.gtk_box_set_homogeneous (embedHandle, false);
} else {