diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-07 23:34:01 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-07 23:34:01 +0000 |
| commit | 84a60ebbfbdf9deea446c35c53f8703edeb8213d (patch) | |
| tree | 96dd35cac0f3350ea0e148d56c0e7b6769209b90 /openbox/menu.c | |
| parent | 804b12d46ab9eb6cd9d5b60931ae776be160536c (diff) | |
dont use obsolete xmlChildrenNode
Diffstat (limited to 'openbox/menu.c')
| -rw-r--r-- | openbox/menu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openbox/menu.c b/openbox/menu.c index 74a743ee..286434cf 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -89,13 +89,13 @@ void menu_startup(gboolean reconfig) for (it = config_menu_files; it; it = g_slist_next(it)) { if (menu_open(it->data, &doc, &node)) { loaded = TRUE; - parse_tree(menu_parse_inst, doc, node->xmlChildrenNode); + parse_tree(menu_parse_inst, doc, node->children); xmlFreeDoc(doc); } } if (!loaded) { if (menu_open("menu.xml", &doc, &node)) { - parse_tree(menu_parse_inst, doc, node->xmlChildrenNode); + parse_tree(menu_parse_inst, doc, node->children); xmlFreeDoc(doc); } } @@ -149,7 +149,7 @@ void menu_pipe_execute(ObMenu *self) menu_parse_state.pipe_creator = self; menu_parse_state.parent = self; - parse_tree(menu_parse_inst, doc, node->xmlChildrenNode); + parse_tree(menu_parse_inst, doc, node->children); xmlFreeDoc(doc); } else { g_warning("Invalid output from pipe-menu: %s", self->execute); @@ -178,7 +178,7 @@ static void parse_menu_item(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, if (parse_attr_string("label", node, &label)) { GSList *acts = NULL; - for (node = node->xmlChildrenNode; node; node = node->next) + for (node = node->children; node; node = node->next) if (!xmlStrcasecmp(node->name, (const xmlChar*) "action")) acts = g_slist_append(acts, action_parse (i, doc, node, @@ -222,7 +222,7 @@ static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, old = state->parent; state->parent = menu; - parse_tree(i, doc, node->xmlChildrenNode); + parse_tree(i, doc, node->children); state->parent = old; } } |
