small api change for parsing

This commit is contained in:
Dana Jansens 2007-07-28 10:56:21 -04:00
parent 2e8c9a13d4
commit 1a0a1626b6
3 changed files with 5 additions and 5 deletions

View file

@ -87,13 +87,13 @@ void obt_parse_instance_unref(ObtParseInst *i)
}
}
xmlDocPtr obt_parse_instance_doc(ObtParseInst *i)
xmlDocPtr obt_parse_doc(ObtParseInst *i)
{
g_assert(i->doc); /* a doc is open? */
return i->doc;
}
xmlNodePtr obt_parse_instance_root(ObtParseInst *i)
xmlNodePtr obt_parse_root(ObtParseInst *i)
{
g_assert(i->doc); /* a doc is open? */
return i->root;

View file

@ -53,8 +53,8 @@ gboolean obt_parse_load_theme_file(ObtParseInst *inst,
gboolean obt_parse_load_mem(ObtParseInst *inst,
gpointer data, guint len, const gchar *root_node);
xmlDocPtr obt_parse_instance_doc(ObtParseInst *inst);
xmlNodePtr obt_parse_instance_root(ObtParseInst *inst);
xmlDocPtr obt_parse_doc(ObtParseInst *inst);
xmlNodePtr obt_parse_root(ObtParseInst *inst);
void obt_parse_close(ObtParseInst *inst);

View file

@ -661,7 +661,7 @@ static void session_load_file(const gchar *path)
obt_parse_instance_unref(i);
return;
}
node = obt_parse_instance_root(i);
node = obt_parse_root(i);
if ((n = obt_parse_find_node(node->children, "desktop")))
session_desktop = obt_parse_node_int(n);