Mercurial > pidgin
diff src/account.c @ 5979:49ae70ffcea5
[gaim-migrate @ 6426]
The check mail option now actually works. It turns out I was quite stupid
and cleared all settings almost immediately after setting that one. Doh.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Mon, 30 Jun 2003 04:45:52 +0000 |
| parents | 2d34c02d2031 |
| children | 547ba881bc7e |
line wrap: on
line diff
--- a/src/account.c Mon Jun 30 03:12:40 2003 +0000 +++ b/src/account.c Mon Jun 30 04:45:52 2003 +0000 @@ -395,6 +395,9 @@ g_return_if_fail(account != NULL); g_return_if_fail(name != NULL); + gaim_debug(GAIM_DEBUG_INFO, "account", "Setting bool: %s, %d\n", + name, value); + setting = g_new0(GaimAccountSetting, 1); setting->type = GAIM_PREF_BOOLEAN; @@ -411,7 +414,7 @@ GHashTable *table; table = g_hash_table_lookup(account->ui_settings, ui); - + if (table == NULL) { table = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, delete_setting); @@ -646,11 +649,17 @@ g_return_val_if_fail(account != NULL, default_value); g_return_val_if_fail(name != NULL, default_value); + gaim_debug(GAIM_DEBUG_INFO, "account", "looking for bool setting: %s\n", + name); + setting = g_hash_table_lookup(account->settings, name); if (setting == NULL) return default_value; + gaim_debug(GAIM_DEBUG_INFO, "account", "bool setting found: %s, %d\n", + name, setting->value.bool); + g_return_val_if_fail(setting->type == GAIM_PREF_BOOLEAN, default_value); return setting->value.bool;
