From b00f07e21d45e0b6ecd4689dd48d24feae42572d Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Wed, 27 Aug 2014 16:10:33 +0200 Subject: 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 file changed, 2 insertions(+), 2 deletions(-) (limited to 'e-util') diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index e0028ffa15..892b570deb 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)); -- cgit v1.2.3