[evolution/wip-webkit2] EWebView - Before inserting new user style sheet, delete the old one.



commit 35c71fedcfbe7c6767d9231913b182c3d5506ff4
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Nov 15 13:13:35 2013 +0100

    EWebView - Before inserting new user style sheet, delete the old one.

 e-util/e-web-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 20a4a56..3eb27d6 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -2341,6 +2341,9 @@ e_web_view_update_fonts_settings (GSettings *font_settings,
                        view_widget, pango_font_description_get_size (min_size) / PANGO_SCALE),
                NULL);
 
+       webkit_web_view_group_remove_all_user_style_sheets (
+               web_view_group);
+
        webkit_web_view_group_add_user_style_sheet (
                web_view_group,
                stylesheet->str,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]