Allow an xml tag to be unregistered from the xml parser.
[dana/openbox.git] / 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,