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-option.c | |
parent | 9e4f25d532f59d85034cbef768bb941f748fb1f2 (diff) | |
download | gsoc2013-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-option.c')
-rw-r--r-- | filter/filter-option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/filter-option.c b/filter/filter-option.c index 90b909d650..e5acdd7bd0 100644 --- a/filter/filter-option.c +++ b/filter/filter-option.c @@ -200,13 +200,13 @@ xml_create (FilterElement *fe, xmlNodePtr node) /* parent implementation */ FILTER_ELEMENT_CLASS (parent_class)->xml_create (fe, node); - n = node->childs; + n = node->children; while (n) { if (!strcmp (n->name, "option")) { char *tmp, *value, *title = NULL, *code = NULL; value = xmlGetProp (n, "value"); - work = n->childs; + work = n->children; while (work) { if (!strcmp (work->name, "title")) { if (!title) { @@ -232,7 +232,7 @@ xml_create (FilterElement *fe, xmlNodePtr node) xmlFree (value); g_free (title); g_free (code); - } else { + } else if (n->type == XML_ELEMENT_NODE) { g_warning ("Unknown xml node within optionlist: %s\n", n->name); } n = n->next; |