diff options
| author | Eric Williams | 2017-07-10 16:04:13 +0000 |
|---|---|---|
| committer | Eric Williams | 2017-07-11 15:23:11 +0000 |
| commit | fdffc9db3abc61bd1d690b5d5740e718ad09e920 (patch) | |
| tree | a716daf7a1d6b5b4c5514abf7161320b641b1dc6 | |
| parent | 312536ccb36a859b8382faaab8a5ecca81484fab (diff) | |
| download | eclipse.platform.swt-fdffc9db3abc61bd1d690b5d5740e718ad09e920.tar.gz eclipse.platform.swt-fdffc9db3abc61bd1d690b5d5740e718ad09e920.tar.xz eclipse.platform.swt-fdffc9db3abc61bd1d690b5d5740e718ad09e920.zip | |
Bug 519416: [GTK] Composite.setBackgroundMode() not working properly on
GTK
Quick fix for Group to allow backgrounds to be set after setText() is
called.
This change only affects GTK3.16 and above. No additional JUnit tests
failures for GTK 3.16 - 3.22.
Change-Id: I7328bd14a3f8e70e8483c5e6384cd9e223af8955
Signed-off-by: Eric Williams <ericwill@redhat.com>
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Group.java | 2 |
1 files changed, 1 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 9e2da671b4..1150cf2859 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 @@ -438,7 +438,7 @@ public void setText (String string) { OS.gtk_frame_set_label_widget (handle, 0); } // Set the foreground now that the text has been set - if (OS.GTK_VERSION >= OS.VERSION (3, 16, 0)) { + if (OS.GTK_VERSION >= OS.VERSION (3, 16, 0) && foreground != null) { setForegroundGdkRGBA (labelHandle, foreground); } } |
