Mercurial > pidgin.yaz
changeset 16576:db7e68346e44
merge of '17c8f178728e61d42fa98ed6205a73cd2e5d21af'
and '3ec872c5acc8cc8fe8216af9473507e2912c0847'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 28 Apr 2007 04:23:42 +0000 |
parents | d212880d8d5b (current diff) 45773df910e0 (diff) |
children | 99bf55ec6ca4 43e119f590ce |
files | |
diffstat | 4 files changed, 17 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/finch.c Sat Apr 28 04:22:37 2007 +0000 +++ b/finch/finch.c Sat Apr 28 04:23:42 2007 +0000 @@ -328,8 +328,7 @@ /* TODO: Move prefs loading into purple_prefs_init() */ purple_prefs_load(); purple_prefs_update_old(); - purple_prefs_rename("/gaim/gnt", "/finch"); - purple_prefs_rename("/purple/gnt", "/finch"); + finch_prefs_update_old(); /* load plugins we had when we quit */ purple_plugins_load_saved("/finch/plugins/loaded");
--- a/finch/gntprefs.c Sat Apr 28 04:22:37 2007 +0000 +++ b/finch/gntprefs.c Sat Apr 28 04:23:42 2007 +0000 @@ -42,9 +42,19 @@ purple_prefs_add_none("/finch/conversations"); purple_prefs_add_bool("/finch/conversations/timestamps", TRUE); - purple_prefs_add_bool("/finch/conversations/notify_typing", FALSE); /* XXX: Not functional yet */ + purple_prefs_add_bool("/finch/conversations/notify_typing", FALSE); +} + +void finch_prefs_update_old() +{ + const char *str = NULL; + purple_prefs_rename("/gaim/gnt", "/finch"); purple_prefs_rename("/purple/gnt", "/finch"); + + if ((str = purple_prefs_get_string("/purple/away/idle_reporting")) && + strcmp(str, "gaim") == 0) + purple_prefs_set_string("/purple/away/idle_reporting", "purple"); } typedef struct