[evolution] EHTMLEditorView - Emoticons can be resizable just in HTML mode



commit 3370c19afaee8522f170e4dbe9e7808ec24f98b9
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 27 10:46:06 2015 +0100

    EHTMLEditorView - Emoticons can be resizable just in HTML mode

 e-util/e-html-editor-view.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 5b232af..5738c7c 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -1618,8 +1618,12 @@ emoticon_read_async_cb (GFile *file,
        /* Insert span with image representation and another one with text
         * represetation and hide/show them dependant on active composer mode */
        wrapper = webkit_dom_document_create_element (document, "SPAN", NULL);
-       webkit_dom_element_set_attribute (
-               wrapper, "class", "-x-evo-smiley-wrapper -x-evo-resizable-wrapper", NULL);
+       if (html_mode)
+               webkit_dom_element_set_attribute (
+                       wrapper, "class", "-x-evo-smiley-wrapper -x-evo-resizable-wrapper", NULL);
+       else
+               webkit_dom_element_set_attribute (
+                       wrapper, "class", "-x-evo-smiley-wrapper", NULL);
 
        image = webkit_dom_document_create_element (document, "IMG", NULL);
        webkit_dom_element_set_attribute (image, "src", output, NULL);


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