comparison src/prefs.c @ 7785:d5ee9c6da122

[gaim-migrate @ 8430] this fixes all sorts of stuff committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 07 Dec 2003 16:15:21 +0000
parents 950ee542eea0
children fa6395637e2c
comparison
equal deleted inserted replaced
7784:136c65e68fb1 7785:d5ee9c6da122
337 sib->sibling = pref->sibling; 337 sib->sibling = pref->sibling;
338 } 338 }
339 339
340 name = pref_full_name(pref); 340 name = pref_full_name(pref);
341 341
342 gaim_debug(GAIM_DEBUG_INFO, "prefs", "removing pref %s\n", name); 342 gaim_debug(GAIM_DEBUG_INFO, "prefs", "removing pref /%s\n", name);
343 343
344 g_hash_table_remove(prefs_hash, name); 344 g_hash_table_remove(prefs_hash, name);
345 g_free(name); 345 g_free(name);
346 346
347 free_pref_value(pref); 347 free_pref_value(pref);
578 return ret; 578 return ret;
579 } 579 }
580 580
581 void gaim_prefs_rename(const char *oldname, const char *newname) { 581 void gaim_prefs_rename(const char *oldname, const char *newname) {
582 struct gaim_pref *oldpref, *newpref; 582 struct gaim_pref *oldpref, *newpref;
583
584 gaim_debug_info("prefs", "Attempting to rename %s to %s\n", oldname, newname);
583 585
584 oldpref = find_pref(oldname); 586 oldpref = find_pref(oldname);
585 newpref = find_pref(newname); 587 newpref = find_pref(newname);
586 588
587 /* it's already been renamed, call off the dogs */ 589 /* it's already been renamed, call off the dogs */
837 839
838 pref_name_full = g_string_prepend_c(pref_name_full, '/'); 840 pref_name_full = g_string_prepend_c(pref_name_full, '/');
839 841
840 switch(pref_type) { 842 switch(pref_type) {
841 case GAIM_PREF_NONE: 843 case GAIM_PREF_NONE:
844 gaim_prefs_add_none(pref_name_full->str);
842 break; 845 break;
843 case GAIM_PREF_BOOLEAN: 846 case GAIM_PREF_BOOLEAN:
844 gaim_prefs_set_bool(pref_name_full->str, atoi(pref_value)); 847 gaim_prefs_set_bool(pref_name_full->str, atoi(pref_value));
845 break; 848 break;
846 case GAIM_PREF_INT: 849 case GAIM_PREF_INT: