aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-08-27 22:10:33 +0800
committerTomas Popela <tpopela@redhat.com>2014-08-27 22:12:02 +0800
commitb00f07e21d45e0b6ecd4689dd48d24feae42572d (patch)
tree9915a1a9dd36823e60a77e5435ac41d6f59dbba1 /e-util
parent6a0592918ac4bf109d67b619cdf3835239b700d4 (diff)
downloadgsoc2013-evolution-b00f07e21d45e0b6ecd4689dd48d24feae42572d.tar
gsoc2013-evolution-b00f07e21d45e0b6ecd4689dd48d24feae42572d.tar.gz
gsoc2013-evolution-b00f07e21d45e0b6ecd4689dd48d24feae42572d.tar.bz2
gsoc2013-evolution-b00f07e21d45e0b6ecd4689dd48d24feae42572d.tar.lz
gsoc2013-evolution-b00f07e21d45e0b6ecd4689dd48d24feae42572d.tar.xz
gsoc2013-evolution-b00f07e21d45e0b6ecd4689dd48d24feae42572d.tar.zst
gsoc2013-evolution-b00f07e21d45e0b6ecd4689dd48d24feae42572d.zip
EHTMLEditorView - Correctly remove all child nodes from the HEAD element
To avoid the critical warnings printed in the console.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-html-editor-view.c4
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 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));