diff options
| author | Marc-Andre Laperle | 2014-05-12 15:02:05 +0000 |
|---|---|---|
| committer | Marc-Andre Laperle | 2014-05-12 15:02:05 +0000 |
| commit | 2247f34f7e6717b23f83a3e524d9181bdd001eaf (patch) | |
| tree | c52e0b83ddb7403672aba1918df45b96df3e55e3 | |
| parent | 4697a58f0a3ea1a0b8cab8c841e547bfbe9ba5a1 (diff) | |
| download | eclipse.platform.swt-2247f34f7e6717b23f83a3e524d9181bdd001eaf.tar.gz eclipse.platform.swt-2247f34f7e6717b23f83a3e524d9181bdd001eaf.tar.xz eclipse.platform.swt-2247f34f7e6717b23f83a3e524d9181bdd001eaf.zip | |
Bug 421836 - [GTK3] Some composite now have background
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.java | 6 |
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 07ca890d54..3b92e1b181 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); |
