aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-file.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-file.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-file.c')
-rw-r--r--filter/filter-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/filter-file.c b/filter/filter-file.c
index 0ef87f646b..2efb5dd6fa 100644
--- a/filter/filter-file.c
+++ b/filter/filter-file.c
@@ -256,7 +256,7 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
xmlFree (file->type);
file->type = type;
- n = node->childs;
+ n = node->children;
if (!strcmp (n->name, type)) {
str = xmlNodeGetContent (n);
if (str)
@@ -265,7 +265,7 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
file->path = g_strdup ("");
d(printf (" '%s'\n", file->path));
- } else {
+ } else if (n->type == XML_ELEMENT_NODE) {
g_warning ("Unknown node type '%s' encountered decoding a %s\n", n->name, type);
}