[evolution] EHTMLEditorView - Correctly remove all child nodes from the HEAD element



commit b00f07e21d45e0b6ecd4689dd48d24feae42572d
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Aug 27 16:10:33 2014 +0200

    EHTMLEditorView - Correctly remove all child nodes from the HEAD element
    
    To avoid the critical warnings printed in the console.

 e-util/e-html-editor-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index e0028ff..892b570 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -6583,8 +6583,8 @@ clear_attributes (WebKitDOMDocument *document)
        g_object_unref (attributes);
 
        /* Remove everything from HEAD element */
-       while (webkit_dom_node_has_child_nodes (WEBKIT_DOM_NODE (head)))
-               remove_node (WEBKIT_DOM_NODE (head));
+       while (webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (head)))
+               remove_node (webkit_dom_node_get_first_child (WEBKIT_DOM_NODE (head)));
 
        /* Remove non Evolution attributes from BODY element */
        attributes = webkit_dom_element_get_attributes (WEBKIT_DOM_ELEMENT (body));


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