comparison pidgin/gtkprefs.c @ 32286:da81195f635e

Drop the .gaim -> .purple migration code
author Richard Laager <rlaager@wiktel.com>
date Fri, 18 Mar 2011 02:59:12 +0000
parents 917c597beb97
children 0d4702446530
comparison
equal deleted inserted replaced
32285:3b4e12c42d3c 32286:da81195f635e
2855 void 2855 void
2856 pidgin_prefs_update_old(void) 2856 pidgin_prefs_update_old(void)
2857 { 2857 {
2858 const char *str = NULL; 2858 const char *str = NULL;
2859 2859
2860 purple_prefs_rename("/gaim/gtk", PIDGIN_PREFS_ROOT);
2861
2862 /* Rename some old prefs */ 2860 /* Rename some old prefs */
2863 purple_prefs_rename(PIDGIN_PREFS_ROOT "/logging/log_ims", "/purple/logging/log_ims"); 2861 purple_prefs_rename(PIDGIN_PREFS_ROOT "/logging/log_ims", "/purple/logging/log_ims");
2864 purple_prefs_rename(PIDGIN_PREFS_ROOT "/logging/log_chats", "/purple/logging/log_chats"); 2862 purple_prefs_rename(PIDGIN_PREFS_ROOT "/logging/log_chats", "/purple/logging/log_chats");
2865 purple_prefs_rename("/purple/conversations/placement", 2863 purple_prefs_rename("/purple/conversations/placement",
2866 PIDGIN_PREFS_ROOT "/conversations/placement"); 2864 PIDGIN_PREFS_ROOT "/conversations/placement");
2879 */ 2877 */
2880 if((str = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/browsers/command")) != NULL) { 2878 if((str = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/browsers/command")) != NULL) {
2881 purple_prefs_set_string(PIDGIN_PREFS_ROOT "/browsers/manual_command", str); 2879 purple_prefs_set_string(PIDGIN_PREFS_ROOT "/browsers/manual_command", str);
2882 purple_prefs_remove(PIDGIN_PREFS_ROOT "/browsers/command"); 2880 purple_prefs_remove(PIDGIN_PREFS_ROOT "/browsers/command");
2883 } 2881 }
2884
2885 /* this string pref moved into the core, try to be friendly */
2886 purple_prefs_rename(PIDGIN_PREFS_ROOT "/idle/reporting_method", "/purple/away/idle_reporting");
2887 if ((str = purple_prefs_get_string("/purple/away/idle_reporting")) &&
2888 strcmp(str, "gaim") == 0)
2889 purple_prefs_set_string("/purple/away/idle_reporting", "purple");
2890 2882
2891 /* Remove some no-longer-used prefs */ 2883 /* Remove some no-longer-used prefs */
2892 purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/auto_expand_contacts"); 2884 purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/auto_expand_contacts");
2893 purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/button_style"); 2885 purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/button_style");
2894 purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/grey_idle_buddies"); 2886 purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/grey_idle_buddies");