[empathy/mc5: 145/483] Hook up removing accounts in the accounts dialog
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/mc5: 145/483] Hook up removing accounts in the accounts dialog
- Date: Fri, 21 Aug 2009 17:13:32 +0000 (UTC)
commit d46b6d50cedf6babe686d8a13dea36d5cbc4394f
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Tue Jul 21 19:12:01 2009 +0100
Hook up removing accounts in the accounts dialog
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 d6a29ea..010493f 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]