Mercurial > pidgin.yaz
changeset 5529:e7747cae9710
[gaim-migrate @ 5929]
Fixed some bugs on loading, and added a couple default keys.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 26 May 2003 07:06:20 +0000 |
parents | c72213437829 |
children | 2c4c975620f0 |
files | src/prefs.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/prefs.c Mon May 26 04:28:11 2003 +0000 +++ b/src/prefs.c Mon May 26 07:06:20 2003 +0000 @@ -66,6 +66,8 @@ void gaim_prefs_init() { prefs_hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); + gaim_prefs_add_none("/core"); + /* XXX: this is where you would want to put prefs declarations */ } @@ -512,14 +514,14 @@ pref_name_full = g_string_new(pref_name); - for(tmp = prefs_stack; tmp; tmp = tmp->prev) { + for(tmp = prefs_stack; tmp; tmp = tmp->next) { pref_name_full = g_string_prepend_c(pref_name_full, '/'); pref_name_full = g_string_prepend(pref_name_full, tmp->data); } pref_name_full = g_string_prepend_c(pref_name_full, '/'); - if(find_pref(pref_name_full->str)) { + if(!find_pref(pref_name_full->str)) { switch(pref_type) { case GAIM_PREF_NONE: gaim_prefs_add_none(pref_name_full->str);