comparison src/account.c @ 5694:2d0d96c5a7a7

[gaim-migrate @ 6115] Added a function to clear all protocol settings from an account. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 03 Jun 2003 07:44:42 +0000
parents 46d7ad0dfa26
children e42535701e25
comparison
equal deleted inserted replaced
5693:0b5318235562 5694:2d0d96c5a7a7
306 306
307 schedule_accounts_save(); 307 schedule_accounts_save();
308 } 308 }
309 309
310 void 310 void
311 gaim_account_clear_settings(GaimAccount *account)
312 {
313 g_return_if_fail(account != NULL);
314
315 g_hash_table_destroy(account->settings);
316
317 account->settings = g_hash_table_new_full(g_str_hash, g_str_equal,
318 g_free, __delete_setting);
319 }
320
321 void
311 gaim_account_set_int(GaimAccount *account, const char *name, int value) 322 gaim_account_set_int(GaimAccount *account, const char *name, int value)
312 { 323 {
313 GaimAccountSetting *setting; 324 GaimAccountSetting *setting;
314 325
315 g_return_if_fail(account != NULL); 326 g_return_if_fail(account != NULL);