changeset 16566:45773df910e0

merge of 'a8caeb1c79d1daf68ca89b1cc36cef4578306ea1' and 'e33fd060bfb78ebc76bd2ce4b79eeb82dc3ad48f'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 28 Apr 2007 04:10:18 +0000
parents 40b90b191ff3 (current diff) ac0d07c7fd90 (diff)
children 7b692d5dd704 db7e68346e44
files
diffstat 3 files changed, 16 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/finch/finch.c	Sat Apr 28 04:10:05 2007 +0000
+++ b/finch/finch.c	Sat Apr 28 04:10:18 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:10:05 2007 +0000
+++ b/finch/gntprefs.c	Sat Apr 28 04:10:18 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
--- a/finch/gntprefs.h	Sat Apr 28 04:10:05 2007 +0000
+++ b/finch/gntprefs.h	Sat Apr 28 04:10:18 2007 +0000
@@ -40,6 +40,10 @@
  */
 void finch_prefs_show_all(void);
 
+/**
+ * You don't need to know about this.
+ */
+void finch_prefs_update_old(void);
 /*@}*/
 
 #endif