small api change for parsing
This commit is contained in:
parent
2e8c9a13d4
commit
1a0a1626b6
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue