Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
index bfdac3fd6b..88fd409498 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java
@@ -336,7 +336,11 @@ void releaseWidget () {
@Override
void setBackgroundGdkRGBA(long /*int*/ handle, GdkRGBA rgba) {
assert GTK.GTK3 : "GTK3 code was run by GTK2";
- super.setBackgroundGdkRGBA(fixedHandle, rgba);
+ if (GTK.GTK_VERSION >= OS.VERSION(3, 18, 0)) {
+ super.setBackgroundGdkRGBA(handle, rgba);
+ } else {
+ super.setBackgroundGdkRGBA(fixedHandle, rgba);
+ }
}
@Override

Back to the top