Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Yan2018-07-04 19:04:28 +0000
committerEric Williams2018-07-05 13:32:09 +0000
commit92026a06e12d118b31b3cea7fd4d86c877f3acbb (patch)
tree65c9dcb7375e0746b41e6469556d0526785c51e1
parent2b780e84b5e18379f86348ebb0e087e666a80b3f (diff)
downloadeclipse.platform.swt-92026a06e12d118b31b3cea7fd4d86c877f3acbb.tar.gz
eclipse.platform.swt-92026a06e12d118b31b3cea7fd4d86c877f3acbb.tar.xz
eclipse.platform.swt-92026a06e12d118b31b3cea7fd4d86c877f3acbb.zip
Bug 515036 - Selected day of month in due date picker is not visible
Replaced "calendar selection" with "calendar:selected" in DateTime#setBackgroundGdkRGBA to correctly set CSS for DateTime's selection background color. Change-Id: I4e2172f683bd1dbeccd0a5663cb3fb5abfc33ac4 Signed-off-by: Xi Yan <xixiyan@redhat.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
index 5cc0ac362e..ebf0805cf4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
@@ -1368,9 +1368,8 @@ void setBackgroundGdkRGBA (long /*int*/ context, long /*int*/ handle, GdkRGBA rg
// Form background string
String name = GTK.GTK_VERSION >= OS.VERSION(3, 20, 0) ? display.gtk_widget_class_get_css_name(handle)
: display.gtk_widget_get_name(handle);
- String selection = GTK.GTK_VERSION >= OS.VERSION(3, 20, 0) ? " selection" : ":selected";
String css = name + " {background: " + display.gtk_rgba_to_css_string (rgba) + ";}\n" +
- name + selection + " {background: " + display.gtk_rgba_to_css_string(display.COLOR_LIST_SELECTION_RGBA) + ";}";
+ name + ":selected" + " {background: " + display.gtk_rgba_to_css_string(display.COLOR_LIST_SELECTION_RGBA) + ";}";
// Cache background
cssBackground = css;

Back to the top