summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse
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 OpenGL/gtk/org/eclipse
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 OpenGL/gtk/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java
index 5866c09e2c..2318d0e0d9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java
@@ -138,7 +138,7 @@ public GLCanvas (Composite parent, int style, GLData data) {
glWindow = OS.gdk_window_new (window, attrs, OS.GDK_WA_VISUAL);
OS.gdk_window_set_user_data (glWindow, handle);
if ((style & SWT.NO_BACKGROUND) != 0) OS.gdk_window_set_back_pixmap (window, 0, false);
- if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)) {
+ if (OS.GTK3) {
xWindow = OS.gdk_x11_window_get_xid (glWindow);
} else {
xWindow = OS.gdk_x11_drawable_get_xid (glWindow);