From ac1de7eaf96bb7adbf0c58ca2c3a3466654aaead Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 13 Nov 2002 09:31:06 +0000 Subject: Get the root node properly. 2002-11-13 Not Zed * 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 --- filter/filter-option.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'filter/filter-option.c') 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; -- cgit v1.2.3