aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-utils.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-01-23 08:02:03 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-01-23 08:02:03 +0800
commiteab9d05a4d4239cc27a93afa40f9c9995a90d5f5 (patch)
tree4129ede4fc3f967fdf2d2562067d2198a231d50d /libempathy/empathy-utils.c
parent19aab43619c7099feecd8db792f800dc5c304c5c (diff)
downloadgsoc2013-empathy-eab9d05a4d4239cc27a93afa40f9c9995a90d5f5.tar
gsoc2013-empathy-eab9d05a4d4239cc27a93afa40f9c9995a90d5f5.tar.gz
gsoc2013-empathy-eab9d05a4d4239cc27a93afa40f9c9995a90d5f5.tar.bz2
gsoc2013-empathy-eab9d05a4d4239cc27a93afa40f9c9995a90d5f5.tar.lz
gsoc2013-empathy-eab9d05a4d4239cc27a93afa40f9c9995a90d5f5.tar.xz
gsoc2013-empathy-eab9d05a4d4239cc27a93afa40f9c9995a90d5f5.tar.zst
gsoc2013-empathy-eab9d05a4d4239cc27a93afa40f9c9995a90d5f5.zip
Try to load dtd and glade files from the srcdir first to aboid having to install them each time we change them.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@596 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r--libempathy/empathy-utils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 0e2c4b588..4050f4673 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -208,11 +208,15 @@ empathy_xml_validate (xmlDoc *doc,
xmlDtd *dtd;
gboolean ret;
- path = g_build_filename (DATADIR, "empathy", dtd_filename, NULL);
+ path = g_build_filename (UNINSTALLED_DTD_DIR, dtd_filename, NULL);
+ if (!g_file_test (path, G_FILE_TEST_EXISTS)) {
+ g_free (path);
+ path = g_build_filename (DATADIR, "empathy", dtd_filename, NULL);
+ }
+ empathy_debug (DEBUG_DOMAIN, "Loading dtd file %s", path);
/* The list of valid chars is taken from libxml. */
escaped = xmlURIEscapeStr (path, ":@&=+$,/?;");
-
g_free (path);
memset (&cvp, 0, sizeof (cvp));