aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-input.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-11-13 17:31:06 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-11-13 17:31:06 +0800
commitac1de7eaf96bb7adbf0c58ca2c3a3466654aaead (patch)
tree95fb67eb0a7c115f03fb7cf0199ebc0d13712d3c /filter/filter-input.c
parent9e4f25d532f59d85034cbef768bb941f748fb1f2 (diff)
downloadgsoc2013-evolution-ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead.tar
gsoc2013-evolution-ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead.tar.gz
gsoc2013-evolution-ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead.tar.bz2
gsoc2013-evolution-ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead.tar.lz
gsoc2013-evolution-ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead.tar.xz
gsoc2013-evolution-ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead.tar.zst
gsoc2013-evolution-ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead.zip
Get the root node properly.
2002-11-13 Not Zed <NotZed@Ximian.com> * rule-context.c (load): Get the root node properly. * rule-editor.c (rule_add): cast g_object_weak_ref (rule_edit): " * all: xml2 node change - childs->children. Also, ignore 'text' nodes while scanning tree. * rule-context.h: gnome-xml->libxml. * filter-element.h: gnome-xml->libxml svn path=/trunk/; revision=18732
Diffstat (limited to 'filter/filter-input.c')
-rw-r--r--filter/filter-input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/filter-input.c b/filter/filter-input.c
index 4846aeefe5..ddbcfc8dc9 100644
--- a/filter/filter-input.c
+++ b/filter/filter-input.c
@@ -279,7 +279,7 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
fe->name = name;
xmlFree (fi->type);
fi->type = type;
- n = node->childs;
+ n = node->children;
while (n) {
if (!strcmp (n->name, type)) {
if (!(str = xmlNodeGetContent (n)))
@@ -288,7 +288,7 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
d(printf (" '%s'\n", str));
fi->values = g_list_append (fi->values, g_strdup (str));
xmlFree (str);
- } else {
+ } else if (n->type == XML_ELEMENT_NODE) {
g_warning ("Unknown node type '%s' encountered decoding a %s\n", n->name, type);
}
n = n->next;