summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSilenio Quarti2013-04-03 10:03:18 (EDT)
committer Carolyn MacLeod2013-04-09 10:57:01 (EDT)
commit6b2bf483ac5c1ea880cd86b9b40d232d503c7ad5 (patch)
tree7906967993017dde61ef8a831734ccef36e972cc
parentff673f7b8c50ee2141d3e6c45754b4e0b93a2580 (diff)
downloadeclipse.platform.swt-6b2bf483ac5c1ea880cd86b9b40d232d503c7ad5.zip
eclipse.platform.swt-6b2bf483ac5c1ea880cd86b9b40d232d503c7ad5.tar.gz
eclipse.platform.swt-6b2bf483ac5c1ea880cd86b9b40d232d503c7ad5.tar.bz2
Bug 398748 - [GTK3] Text in Javadoc hover unreadable on Ubuntu 12.04
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
index f41ab74..810e919 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
@@ -2329,6 +2329,7 @@ void initializeSystemColors () {
if (OS.GTK3) {
long /*int*/ context = OS.gtk_widget_get_style_context (tooltipShellHandle);
OS.gtk_style_context_add_class (context, OS.GTK_STYLE_CLASS_TOOLTIP);
+ OS.gtk_style_context_invalidate(context);
GdkRGBA rgba = new GdkRGBA();
OS.gtk_style_context_get_color (context, OS.GTK_STATE_FLAG_NORMAL, rgba);
COLOR_INFO_FOREGROUND = toGdkColor (rgba);
@@ -2352,6 +2353,7 @@ void initializeSystemColors () {
OS.gtk_style_context_save (context);
OS.gtk_style_context_add_class(context, OS.GTK_STYLE_CLASS_VIEW);
OS.gtk_style_context_add_class(context, OS.GTK_STYLE_CLASS_CELL);
+ OS.gtk_style_context_invalidate(context);
OS.gtk_style_context_get_color (context, OS.GTK_STATE_FLAG_NORMAL, rgba);
COLOR_LIST_FOREGROUND = toGdkColor (rgba);
OS.gtk_style_context_get_background_color (context, OS.GTK_STATE_FLAG_NORMAL, rgba);