Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
6367:9fd154ca6a94 | 6368:41e6d15f4687 |
---|---|
1468 &iter, NULL, index)) { | 1468 &iter, NULL, index)) { |
1469 | 1469 |
1470 gtk_list_store_remove(accounts_window->model, &iter); | 1470 gtk_list_store_remove(accounts_window->model, &iter); |
1471 } | 1471 } |
1472 | 1472 |
1473 gaim_accounts_remove(account); | 1473 gaim_accounts_delete(account); |
1474 gaim_account_destroy(account); | |
1475 } | 1474 } |
1476 | 1475 |
1477 static void | 1476 static void |
1478 ask_delete_account_sel(GtkTreeModel *model, GtkTreePath *path, | 1477 ask_delete_account_sel(GtkTreeModel *model, GtkTreePath *path, |
1479 GtkTreeIter *iter, gpointer data) | 1478 GtkTreeIter *iter, gpointer data) |