diff options
author | Emanuele Aina <emanuele.aina@collabora.com> | 2013-03-26 20:09:29 +0800 |
---|---|---|
committer | Emanuele Aina <emanuele.aina@collabora.com> | 2013-04-01 17:50:29 +0800 |
commit | 3992967e7a3015a48b5db9c7e652105abe38856e (patch) | |
tree | df9901dc03195bfbfd7fa3bab97fb9c0f7e5b557 /libempathy/empathy-contact-groups.c | |
parent | 4299f29ac941292054b4e004aac51e1b143a386a (diff) | |
download | gsoc2013-empathy-3992967e7a3015a48b5db9c7e652105abe38856e.tar gsoc2013-empathy-3992967e7a3015a48b5db9c7e652105abe38856e.tar.gz gsoc2013-empathy-3992967e7a3015a48b5db9c7e652105abe38856e.tar.bz2 gsoc2013-empathy-3992967e7a3015a48b5db9c7e652105abe38856e.tar.lz gsoc2013-empathy-3992967e7a3015a48b5db9c7e652105abe38856e.tar.xz 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-contact-groups.c')
-rw-r--r-- | libempathy/empathy-contact-groups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-contact-groups.c b/libempathy/empathy-contact-groups.c index 8d49f0519..7fb02499f 100644 --- a/libempathy/empathy-contact-groups.c +++ b/libempathy/empathy-contact-groups.c @@ -31,7 +31,7 @@ #include "empathy-debug.h" #define CONTACT_GROUPS_XML_FILENAME "contact-groups.xml" -#define CONTACT_GROUPS_DTD_FILENAME "empathy-contact-groups.dtd" +#define CONTACT_GROUPS_DTD_RESOURCENAME "/org/gnome/Empathy/empathy-contact-groups.dtd" typedef struct { gchar *name; @@ -91,7 +91,7 @@ contact_groups_file_parse (const gchar *filename) return; } - if (!empathy_xml_validate (doc, CONTACT_GROUPS_DTD_FILENAME)) { + if (!empathy_xml_validate_from_resource (doc, CONTACT_GROUPS_DTD_RESOURCENAME)) { g_warning ("Failed to validate file:'%s'", filename); xmlFreeDoc (doc); xmlFreeParserCtxt (ctxt); |