diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-08-02 17:11:04 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-08-02 17:11:41 +0800 |
commit | a456ef68fd8cb97faa2fc0f0ecf6341aec2dcc1d (patch) | |
tree | 46b3517ae056c5d4c600b3bf6bf3c1321966c1de /widgets/misc | |
parent | 9c2a94b367553d79add31c3beea0a86df2ff1f1d (diff) | |
download | gsoc2013-evolution-a456ef68fd8cb97faa2fc0f0ecf6341aec2dcc1d.tar gsoc2013-evolution-a456ef68fd8cb97faa2fc0f0ecf6341aec2dcc1d.tar.gz gsoc2013-evolution-a456ef68fd8cb97faa2fc0f0ecf6341aec2dcc1d.tar.bz2 gsoc2013-evolution-a456ef68fd8cb97faa2fc0f0ecf6341aec2dcc1d.tar.lz gsoc2013-evolution-a456ef68fd8cb97faa2fc0f0ecf6341aec2dcc1d.tar.xz gsoc2013-evolution-a456ef68fd8cb97faa2fc0f0ecf6341aec2dcc1d.tar.zst gsoc2013-evolution-a456ef68fd8cb97faa2fc0f0ecf6341aec2dcc1d.zip |
Bug #680666 - Contacts/Tasks/Memos preview pane does not follow theme colors
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-web-view.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c index e24621e711..bb755b134c 100644 --- a/widgets/misc/e-web-view.c +++ b/widgets/misc/e-web-view.c @@ -1875,21 +1875,16 @@ e_web_view_new (void) void e_web_view_clear (EWebView *web_view) { - GtkStyleContext *style_context; - GtkStateFlags state_flags; - GdkRGBA rgba; + GtkStyle *style; gchar *html; g_return_if_fail (E_IS_WEB_VIEW (web_view)); - style_context = gtk_widget_get_style_context (GTK_WIDGET (web_view)); - state_flags = gtk_widget_get_state_flags (GTK_WIDGET (web_view)); - gtk_style_context_get_background_color ( - style_context, state_flags, &rgba); + style = gtk_widget_get_style (GTK_WIDGET (web_view)); html = g_strdup_printf ( "<html><head></head><body bgcolor=\"#%06x\"></body></html>", - e_rgba_to_value (&rgba)); + e_color_to_value (&style->base[GTK_STATE_NORMAL])); webkit_web_view_load_html_string (WEBKIT_WEB_VIEW (web_view), html, NULL); |