Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2014-08-14 17:34:10 +0000
committerMarkus Keller2014-08-14 17:34:10 +0000
commit9c9fcc30d95028e05314692253d1d5da0524f085 (patch)
tree700e0e38c125bf18479af294cbe5aac6bfbbe6ff /bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
parent620410a0b2caa1a45bd009f041bdcb089b5acd5b (diff)
downloadeclipse.platform.swt-9c9fcc30d95028e05314692253d1d5da0524f085.tar.gz
eclipse.platform.swt-9c9fcc30d95028e05314692253d1d5da0524f085.tar.xz
eclipse.platform.swt-9c9fcc30d95028e05314692253d1d5da0524f085.zip
Bug 441373: Make it easier to identify GTK version used by SWT
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
index d18e0477d1..f26fdf9b42 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.
+ * Copyright (c) 2000, 2014 IBM Corporation and others. All rights reserved.
* The contents of this file are made available under the terms
* of the GNU Lesser General Public License (LGPL) Version 2.1 that
* accompanies this distribution (lgpl-v21.txt). The LGPL is also
@@ -671,7 +671,8 @@ public class OS extends C {
}
INIT_CAIRO = initCairo;
- System.setProperty("org.eclipse.swt.internal.gtk.version", (GTK3 ? "3" : "2") + "; " + GTK_VERSION);
+ System.setProperty("org.eclipse.swt.internal.gtk.version",
+ (GTK_VERSION >>> 16) + "." + (GTK_VERSION >>> 8 & 0xFF) + "." + (GTK_VERSION & 0xFF));
}
protected static byte [] ascii (String name) {

Back to the top