aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2014-05-12 11:02:05 (EDT)
committerMarc-Andre Laperle2014-05-12 11:02:05 (EDT)
commit2247f34f7e6717b23f83a3e524d9181bdd001eaf (patch)
treec52e0b83ddb7403672aba1918df45b96df3e55e3
parent4697a58f0a3ea1a0b8cab8c841e547bfbe9ba5a1 (diff)
downloadeclipse.platform.swt-2247f34f7e6717b23f83a3e524d9181bdd001eaf.zip
eclipse.platform.swt-2247f34f7e6717b23f83a3e524d9181bdd001eaf.tar.gz
eclipse.platform.swt-2247f34f7e6717b23f83a3e524d9181bdd001eaf.tar.bz2
Bug 421836 - [GTK3] Some composite now have backgroundrefs/changes/75/26375/1
Change-Id: I86106343f1a1cf9f07ce7591ef41a9d3f36dc9b3 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index 07ca890..3b92e1b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -3996,7 +3996,11 @@ public void setBackground (Color color) {
}
boolean set = false;
if (OS.GTK3) {
- set = !getBackground().equals(color);
+ // TODO: Some widgets like GtkLabel (and others) are transparent
+ // in GTK3, so one needs to set their background. For now, always
+ // set the background. See bug 421836.
+ // set = !getBackground().equals(color);
+ set = true;
} else {
if (gdkColor == null) {
long /*int*/ style = OS.gtk_widget_get_modifier_style (handle);