[evolution/wip/webkit2] EHTMLEditorView - Emoticons can be resizable just in HTML mode
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorView - Emoticons can be resizable just in HTML mode
- Date: Wed, 22 Apr 2015 13:05:36 +0000 (UTC)
commit 1962132a0d5e2a9c2ed6c791b4d639b74360f7d3
Author: Tomas Popela <tpopela redhat com>
Date: Thu Mar 26 13:28:40 2015 +0100
EHTMLEditorView - Emoticons can be resizable just in HTML mode
web-extensions/e-html-editor-view-dom-functions.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/web-extensions/e-html-editor-view-dom-functions.c
b/web-extensions/e-html-editor-view-dom-functions.c
index f49b16b..78513c8 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -1368,8 +1368,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]