add obt_parse_tree_from_root and use it, cuz it's nice
Dana Jansens danakj@orodu.net
4 files changed,
9 insertions(+),
5 deletions(-)
M
obt/parse.c
→
obt/parse.c
@@ -304,6 +304,11 @@ node = node->next;
} } +void obt_parse_tree_from_root(ObtParseInst *i) +{ + obt_parse_tree(i, i->root->children); +} + gchar *obt_parse_node_string(xmlNodePtr node) { xmlChar *c = xmlNodeGetContent(node);
M
obt/parse.h
→
obt/parse.h
@@ -61,6 +61,7 @@
void obt_parse_register(ObtParseInst *inst, const gchar *tag, ObtParseCallback func, gpointer data); void obt_parse_tree(ObtParseInst *i, xmlNodePtr node); +void obt_parse_tree_from_root(ObtParseInst *i); /* helpers */
M
openbox/openbox.c
→
openbox/openbox.c
@@ -230,7 +230,7 @@ /* parse/load user options */
if (obt_parse_load_config_file(i, "openbox", "rc.xml", "openbox_config")) { - obt_parse_tree(i, obt_parse_instance_root(i)->children); + obt_parse_tree_from_root(i); obt_parse_close(i); } else g_message(_("Unable to find a valid config file, using some simple defaults"));