diff options
author | Milan Crha <mcrha@redhat.com> | 2014-07-07 18:51:41 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-07-07 18:51:41 +0800 |
commit | 50bda1bad222082488d3d9bc9fe1d0fb3867e974 (patch) | |
tree | 27042fc0a39e4a7f79d920bae88cb29aa5677d10 /e-util/e-web-view.c | |
parent | 534864b39850ea2354b87419da6dc77538867756 (diff) | |
download | gsoc2013-evolution-50bda1bad222082488d3d9bc9fe1d0fb3867e974.tar gsoc2013-evolution-50bda1bad222082488d3d9bc9fe1d0fb3867e974.tar.gz gsoc2013-evolution-50bda1bad222082488d3d9bc9fe1d0fb3867e974.tar.bz2 gsoc2013-evolution-50bda1bad222082488d3d9bc9fe1d0fb3867e974.tar.lz gsoc2013-evolution-50bda1bad222082488d3d9bc9fe1d0fb3867e974.tar.xz gsoc2013-evolution-50bda1bad222082488d3d9bc9fe1d0fb3867e974.tar.zst gsoc2013-evolution-50bda1bad222082488d3d9bc9fe1d0fb3867e974.zip |
Replace GtkStyle usages with GtkStyleContext
This makes evolution depend on theme-defined named colors, namely:
theme_bg_color
theme_base_color
theme_fg_color
theme_text_color
theme_selected_bg_color
theme_selected_fg_color
theme_unfocused_selected_bg_color
theme_unfocused_selected_fg_color
If it's not defined, then a fallback color is used, in the worse case
one of the fallbacks defined in evolution itself.
Diffstat (limited to 'e-util/e-web-view.c')
-rw-r--r-- | e-util/e-web-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c index e17a18080e..fb644418db 100644 --- a/e-util/e-web-view.c +++ b/e-util/e-web-view.c @@ -618,7 +618,7 @@ style_updated_cb (EWebView *web_view) &color)) color_value = g_strdup_printf ("#%06x", e_rgba_to_value (&color)); else - color_value = g_strdup("#ffffff"); + color_value = g_strdup (E_UTILS_DEFAULT_THEME_BASE_COLOR); style = g_strconcat ("background-color: ", color_value, ";", NULL); @@ -637,7 +637,7 @@ style_updated_cb (EWebView *web_view) &color)) color_value = g_strdup_printf ("#%06x", e_rgba_to_value (&color)); else - color_value = g_strdup("#000000"); + color_value = g_strdup (E_UTILS_DEFAULT_THEME_FG_COLOR); style = g_strconcat ("color: ", color_value, ";", NULL); |