[evolution] EHTMLEditorPageDialog - Don't set transparent background color in Perforated Paper template



commit 661948481c74a3701aa690b083f77e41cb730395
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Oct 2 14:20:58 2014 +0200

    EHTMLEditorPageDialog - Don't set transparent background color in Perforated Paper template

 e-util/e-html-editor-page-dialog.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-page-dialog.c b/e-util/e-html-editor-page-dialog.c
index 8dd8997..2759830 100644
--- a/e-util/e-html-editor-page-dialog.c
+++ b/e-util/e-html-editor-page-dialog.c
@@ -70,7 +70,7 @@ static const Template templates[] = {
                "paper.png",
                { 0.0, 0.0, 0.0, 1 },
                { 0.0, 0.2, 0.4, 1 },
-               { 1.0, 1.0, 1.0, 0 },
+               { 1.0, 1.0, 1.0, 1 },
                30
        },
 
@@ -321,6 +321,7 @@ html_editor_page_dialog_show (GtkWidget *widget)
        gchar *tmp;
        GdkRGBA rgba;
 
+       printf ("%s\n", __FUNCTION__);
        dialog = E_HTML_EDITOR_PAGE_DIALOG (widget);
        editor = e_html_editor_dialog_get_editor (E_HTML_EDITOR_DIALOG (dialog));
        view = e_html_editor_get_view (editor);
@@ -328,8 +329,9 @@ html_editor_page_dialog_show (GtkWidget *widget)
        document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (view));
        body = webkit_dom_document_get_body (document);
 
-       tmp = webkit_dom_html_body_element_get_background (
-                       WEBKIT_DOM_HTML_BODY_ELEMENT (body));
+       tmp = webkit_dom_element_get_attribute (
+               WEBKIT_DOM_ELEMENT (body), "data-uri");
+       printf ("%s\n", tmp);
        if (tmp && *tmp) {
                gint ii;
                gchar *fname = g_filename_from_uri (tmp, NULL, NULL);


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