aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-irc-network-manager.c
diff options
context:
space:
mode:
authorEmanuele Aina <emanuele.aina@collabora.com>2013-03-26 20:09:29 +0800
committerEmanuele Aina <emanuele.aina@collabora.com>2013-04-01 17:50:29 +0800
commit3992967e7a3015a48b5db9c7e652105abe38856e (patch)
treedf9901dc03195bfbfd7fa3bab97fb9c0f7e5b557 /libempathy/empathy-irc-network-manager.c
parent4299f29ac941292054b4e004aac51e1b143a386a (diff)
downloadgsoc2013-empathy-3992967e7a3015a48b5db9c7e652105abe38856e.tar.gz
gsoc2013-empathy-3992967e7a3015a48b5db9c7e652105abe38856e.tar.zst
gsoc2013-empathy-3992967e7a3015a48b5db9c7e652105abe38856e.zip
Embed DTDs for XML validation as GResources
https://bugzilla.gnome.org/show_bug.cgi?id=696974
Diffstat (limited to 'libempathy/empathy-irc-network-manager.c')
-rw-r--r--libempathy/empathy-irc-network-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-irc-network-manager.c b/libempathy/empathy-irc-network-manager.c
index 7f6ed9df8..3c2a31544 100644
--- a/libempathy/empathy-irc-network-manager.c
+++ b/libempathy/empathy-irc-network-manager.c
@@ -28,7 +28,7 @@
#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
@@ -632,7 +632,7 @@ irc_network_manager_file_parse (EmpathyIrcNetworkManager *self,
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);