diff options
| author | Silenio Quarti | 2013-04-03 14:03:18 +0000 |
|---|---|---|
| committer | Carolyn MacLeod | 2013-04-09 14:57:01 +0000 |
| commit | 6b2bf483ac5c1ea880cd86b9b40d232d503c7ad5 (patch) | |
| tree | 7906967993017dde61ef8a831734ccef36e972cc | |
| parent | ff673f7b8c50ee2141d3e6c45754b4e0b93a2580 (diff) | |
| download | eclipse.platform.swt-6b2bf483ac5c1ea880cd86b9b40d232d503c7ad5.tar.gz eclipse.platform.swt-6b2bf483ac5c1ea880cd86b9b40d232d503c7ad5.tar.xz eclipse.platform.swt-6b2bf483ac5c1ea880cd86b9b40d232d503c7ad5.zip | |
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.java | 2 |
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 f41ab74207..810e919914 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); |
