aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-22 02:12:01 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-22 02:12:01 +0800
commitd46b6d50cedf6babe686d8a13dea36d5cbc4394f (patch)
tree022fe4d3db34044091bd37bbfd43c11ba5c2d255 /src
parent2e87bc47e7c03fa0d2145b2c3904df545b941a76 (diff)
downloadgsoc2013-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')
-rw-r--r--src/empathy-accounts-dialog.c8
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);
}