diff options
author | Not Zed <NotZed@Ximian.com> | 2002-11-13 17:31:06 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-11-13 17:31:06 +0800 |
commit | ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead (patch) | |
tree | 95fb67eb0a7c115f03fb7cf0199ebc0d13712d3c /filter/filter-filter.c | |
parent | 9e4f25d532f59d85034cbef768bb941f748fb1f2 (diff) | |
download | gsoc2013-evolution-ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead.tar.gz 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-filter.c')
-rw-r--r-- | filter/filter-filter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/filter-filter.c b/filter/filter-filter.c index 84ba7875d5..1b34425188 100644 --- a/filter/filter-filter.c +++ b/filter/filter-filter.c @@ -244,7 +244,7 @@ load_set (xmlNodePtr node, FilterFilter *ff, RuleContext *rc) char *rulename; FilterPart *part; - work = node->childs; + work = node->children; while (work) { if (!strcmp (work->name, "part")) { rulename = xmlGetProp (work, "name"); @@ -257,7 +257,7 @@ load_set (xmlNodePtr node, FilterFilter *ff, RuleContext *rc) g_warning ("cannot find rule part '%s'\n", rulename); } xmlFree (rulename); - } else { + } else if (work->type == XML_ELEMENT_NODE) { g_warning ("Unknown xml node in part: %s", work->name); } work = work->next; @@ -275,7 +275,7 @@ xml_decode (FilterRule *fr, xmlNodePtr node, RuleContext *rc) if (result != 0) return result; - work = node->childs; + work = node->children; while (work) { if (!strcmp (work->name, "actionset")) { load_set (work, ff, rc); |