diff options
-rw-r--r-- | libempathy-gtk/empathy-theme-manager.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-theme-manager.c b/libempathy-gtk/empathy-theme-manager.c index 81b15d5ca..13d98af73 100644 --- a/libempathy-gtk/empathy-theme-manager.c +++ b/libempathy-gtk/empathy-theme-manager.c @@ -272,7 +272,6 @@ theme_manager_migrate_from_legacy_theme (EmpathyThemeManager *self) char *theme = g_settings_get_string (priv->gsettings_chat, EMPATHY_PREFS_CHAT_THEME); const char *adium_theme, *variant = ""; - char *path; if (!tp_strdiff (theme, "adium")) { goto finally; @@ -291,21 +290,15 @@ theme_manager_migrate_from_legacy_theme (EmpathyThemeManager *self) adium_theme = "Classic"; } - path = g_strjoin (NULL, DATADIR, "/adium/message-styles/", - adium_theme, ".AdiumMessageStyle", - NULL); - - DEBUG ("Migrating to '%s' variant '%s'", path, variant); + DEBUG ("Migrating to '%s' variant '%s'", adium_theme, variant); g_settings_set_string (priv->gsettings_chat, EMPATHY_PREFS_CHAT_THEME, "adium"); g_settings_set_string (priv->gsettings_chat, - EMPATHY_PREFS_CHAT_ADIUM_PATH, path); + EMPATHY_PREFS_CHAT_ADIUM_PATH, adium_theme); g_settings_set_string (priv->gsettings_chat, EMPATHY_PREFS_CHAT_THEME_VARIANT, variant); - g_free (path); - finally: g_free (theme); } |