Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Hirsch2018-10-10 09:03:51 +0000
committerFelix Hirsch2018-10-10 09:03:51 +0000
commit50c460028983250646b5bba1a8f4b369d7b89eed (patch)
treeee6bbe39362431ed83f521dd1d4c3510001d9252
parentb758d16b5af89b65cfeef883ca3acdd36de530dc (diff)
downloadeclipse.platform.swt-R4_9_maintenance.tar.gz
eclipse.platform.swt-R4_9_maintenance.tar.xz
eclipse.platform.swt-R4_9_maintenance.zip
539220 : GLCanvas does not work with GTK3R4_9_maintenance
Specify GDK_WA_VISUAL constant depending weather GTK2 or GTK3 is used. Use the snippet in bug description and follow the instructions to run the snippet. No JUnit Tests performed Change-Id: Id8f9272f3e8248422a7c6e38e027a55425fc68b2 Signed-off-by: Felix Hirsch <felix.hirsch@gmail.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
index 2fca22577f..108e09d222 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GDK.java
@@ -252,7 +252,7 @@ public class GDK extends OS {
public static final int GDK_UNMAP = 15;
public static final int GDK_WA_X = 1 << 2;
public static final int GDK_WA_Y = 1 << 3;
- public static final int GDK_WA_VISUAL = 1 << 6;
+ public static final int GDK_WA_VISUAL = GTK.GTK3 ? (1<<5) : (1<<6);
public static final int GDK_WINDOW_TYPE_HINT_DIALOG = 1;
public static final int GDK_WINDOW_TYPE_HINT_UTILITY = 5;
public static final int GDK_WINDOW_TYPE_HINT_TOOLTIP = 10;

Back to the top