projects
/
mikachu
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow an xml tag to be unregistered from the xml parser.
[mikachu/openbox.git]
/
obt
/
xml.c
diff --git
a/obt/xml.c
b/obt/xml.c
index
c872912
..
fde3b76
100644
(file)
--- a/
obt/xml.c
+++ b/
obt/xml.c
@@
-112,6
+112,11
@@
void obt_xml_register(ObtXmlInst *i, const gchar *tag,
g_hash_table_insert(i->callbacks, c->tag, c);
}
+void obt_xml_unregister(ObtXmlInst *i, const gchar *tag)
+{
+ g_hash_table_remove(i->callbacks, tag);
+}
+
static gboolean load_file(ObtXmlInst *i,
const gchar *domain,
const gchar *filename,