* Authors: Guillaume Desmottes <gdesmott@gnome.org>
*/
-#include <config.h>
-#include <string.h>
-#include <sys/types.h>
+#include "config.h"
+#include "empathy-irc-network-manager.h"
+
#include <sys/stat.h>
-#include <libxml/parser.h>
-#include <libxml/tree.h>
#include "empathy-utils.h"
-#include "empathy-irc-network-manager.h"
#define DEBUG_FLAG EMPATHY_DEBUG_IRC
#include "empathy-debug.h"
-#define IRC_NETWORKS_DTD_FILENAME "empathy-irc-networks.dtd"
+#define IRC_NETWORKS_DTD_RESOURCENAME "/org/gnome/Empathy/empathy-irc-networks.dtd"
#define IRC_NETWORKS_FILENAME "irc-networks.xml"
#define SAVE_TIMER 4
g_free (priv->global_file);
g_free (priv->user_file);
- g_hash_table_destroy (priv->networks);
+ g_hash_table_unref (priv->networks);
G_OBJECT_CLASS (empathy_irc_network_manager_parent_class)->finalize (object);
}
return FALSE;
}
- if (!empathy_xml_validate (doc, IRC_NETWORKS_DTD_FILENAME)) {
+ if (!empathy_xml_validate_from_resource (doc, IRC_NETWORKS_DTD_RESOURCENAME)) {
g_warning ("Failed to validate file:'%s'", filename);
xmlFreeDoc (doc);
xmlFreeParserCtxt (ctxt);