aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:32:07 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-16 17:32:07 +0800
commit445b7f4f6a649bc93924cb834bb25c739084a045 (patch)
tree7e7b1fa341a5080a7d56c78a9ba497a64890a9b4
parentce6e190f54f66f864e95ddfa104631cb3009ac9b (diff)
downloadgsoc2013-empathy-445b7f4f6a649bc93924cb834bb25c739084a045.tar
gsoc2013-empathy-445b7f4f6a649bc93924cb834bb25c739084a045.tar.gz
gsoc2013-empathy-445b7f4f6a649bc93924cb834bb25c739084a045.tar.bz2
gsoc2013-empathy-445b7f4f6a649bc93924cb834bb25c739084a045.tar.lz
gsoc2013-empathy-445b7f4f6a649bc93924cb834bb25c739084a045.tar.xz
gsoc2013-empathy-445b7f4f6a649bc93924cb834bb25c739084a045.tar.zst
gsoc2013-empathy-445b7f4f6a649bc93924cb834bb25c739084a045.zip
Fallback to use "classic" theme if the gconf key is invalid
svn path=/trunk/; revision=2003
-rw-r--r--libempathy-gtk/empathy-theme-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme-manager.c b/libempathy-gtk/empathy-theme-manager.c
index 79bc5384d..d615611a7 100644
--- a/libempathy-gtk/empathy-theme-manager.c
+++ b/libempathy-gtk/empathy-theme-manager.c
@@ -380,6 +380,10 @@ theme_manager_notify_name_cb (EmpathyConf *conf,
if (!empathy_conf_get_string (conf, key, &name) ||
!theme_manager_ensure_theme_exists (name) ||
!tp_strdiff (priv->name, name)) {
+ if (!priv->name) {
+ priv->name = g_strdup ("classic");
+ }
+
g_free (name);
return;
}