aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-theme-adium.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2012-06-29 12:12:14 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-07-02 16:03:23 +0800
commit518d54667e1934f0e339e3368d77cfc953a34314 (patch)
tree8001c79bc000224ee8020b29837cf776ef06fe4c /libempathy-gtk/empathy-theme-adium.c
parentf433b0821c24fc7382bd289f2246b7b1e2039106 (diff)
downloadgsoc2013-empathy-518d54667e1934f0e339e3368d77cfc953a34314.tar
gsoc2013-empathy-518d54667e1934f0e339e3368d77cfc953a34314.tar.gz
gsoc2013-empathy-518d54667e1934f0e339e3368d77cfc953a34314.tar.bz2
gsoc2013-empathy-518d54667e1934f0e339e3368d77cfc953a34314.tar.lz
gsoc2013-empathy-518d54667e1934f0e339e3368d77cfc953a34314.tar.xz
gsoc2013-empathy-518d54667e1934f0e339e3368d77cfc953a34314.tar.zst
gsoc2013-empathy-518d54667e1934f0e339e3368d77cfc953a34314.zip
theme-manager: make it possible to look up theme by name
Diffstat (limited to 'libempathy-gtk/empathy-theme-adium.c')
-rw-r--r--libempathy-gtk/empathy-theme-adium.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index 485d361f6..f1aad6eac 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -1710,6 +1710,9 @@ empathy_adium_path_is_valid (const gchar *path)
gboolean ret;
gchar *file;
+ if (path[0] != '/')
+ return FALSE;
+
/* The theme is not valid if there is no Info.plist */
file = g_build_filename (path, "Contents", "Info.plist",
NULL);