diff src/gtkaccount.c @ 6368:41e6d15f4687

[gaim-migrate @ 6873] Actually, I decided to move the code to delete an account into gaim_accounts_delete(). This way, gaim_accounts_{add,remove} can be used for simply manipulating the list... A function should really just do one thing right. gaim_accounts_delete() now handles the removal of an account from the list, the deletion of buddies, and the destroying of the account structure. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 04 Aug 2003 19:39:33 +0000
parents f63da9023c99
children 8f94cce8faa5
line wrap: on
line diff
--- a/src/gtkaccount.c	Mon Aug 04 19:35:17 2003 +0000
+++ b/src/gtkaccount.c	Mon Aug 04 19:39:33 2003 +0000
@@ -1470,8 +1470,7 @@
 		gtk_list_store_remove(accounts_window->model, &iter);
 	}
 
-	gaim_accounts_remove(account);
-	gaim_account_destroy(account);
+	gaim_accounts_delete(account);
 }
 
 static void