[evolution/wip/webkit-composer: 894/966] EEditorWidget: Don't remove smiley image representation when changing composer mode



commit d093ca62d26a980f14e004987ab1eff4835f1aa7
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 12 11:41:07 2014 +0100

    EEditorWidget: Don't remove smiley image representation when changing composer mode

 e-util/e-editor-widget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 0ad7c33..6fbb9f4 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -4158,7 +4158,8 @@ remove_images (EEditorWidget *widget)
        WebKitDOMNodeList *images;
 
        document = webkit_web_view_get_dom_document (WEBKIT_WEB_VIEW (widget));
-       images = webkit_dom_document_query_selector_all (document, "img", NULL);
+       images = webkit_dom_document_query_selector_all (
+               document, "img:not(.-x-evo-smiley-img)", NULL);
 
        length = webkit_dom_node_list_get_length (images);
        for (ii = 0; ii < length; ii++) {


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