diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-22 02:12:01 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-22 02:12:01 +0800 |
commit | d46b6d50cedf6babe686d8a13dea36d5cbc4394f (patch) | |
tree | 022fe4d3db34044091bd37bbfd43c11ba5c2d255 /src/empathy-accounts-dialog.c | |
parent | 2e87bc47e7c03fa0d2145b2c3904df545b941a76 (diff) | |
download | gsoc2013-empathy-d46b6d50cedf6babe686d8a13dea36d5cbc4394f.tar gsoc2013-empathy-d46b6d50cedf6babe686d8a13dea36d5cbc4394f.tar.gz gsoc2013-empathy-d46b6d50cedf6babe686d8a13dea36d5cbc4394f.tar.bz2 gsoc2013-empathy-d46b6d50cedf6babe686d8a13dea36d5cbc4394f.tar.lz gsoc2013-empathy-d46b6d50cedf6babe686d8a13dea36d5cbc4394f.tar.xz gsoc2013-empathy-d46b6d50cedf6babe686d8a13dea36d5cbc4394f.tar.zst gsoc2013-empathy-d46b6d50cedf6babe686d8a13dea36d5cbc4394f.zip |
Hook up removing accounts in the accounts dialog
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r-- | src/empathy-accounts-dialog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index d6a29ea63..010493ff2 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -669,6 +669,7 @@ accounts_dialog_model_remove_selected (EmpathyAccountsDialog *dialog) GtkTreeModel *model; GtkTreeSelection *selection; GtkTreeIter iter; + EmpathyAccount *account; view = GTK_TREE_VIEW (dialog->treeview); selection = gtk_tree_view_get_selection (view); @@ -677,6 +678,13 @@ accounts_dialog_model_remove_selected (EmpathyAccountsDialog *dialog) return FALSE; } + gtk_tree_model_get (model, &iter, + COL_ACCOUNT_POINTER, &account, + -1); + + if (account != NULL) + empathy_account_remove_async (account, NULL, NULL); + return gtk_list_store_remove (GTK_LIST_STORE (model), &iter); } |