[empathy] update treeview when account's status is changed
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] update treeview when account's status is changed
- Date: Mon, 18 Jan 2010 14:01:00 +0000 (UTC)
commit efcf558673f83faf9621fe644ea1c20c78756d9f
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Jan 15 10:48:15 2010 +0000
update treeview when account's status is changed
src/empathy-accounts-dialog.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 15e6796..9846042 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1471,6 +1471,25 @@ accounts_dialog_connection_changed_cb (TpAccount *account,
}
static void
+update_account_in_treeview (EmpathyAccountsDialog *self,
+ TpAccount *account)
+{
+ EmpathyAccountsDialogPriv *priv = GET_PRIV (self);
+ GtkTreeIter iter;
+ GtkTreeModel *model;
+
+ model = gtk_tree_view_get_model (GTK_TREE_VIEW (priv->treeview));
+ if (accounts_dialog_get_account_iter (self, account, &iter))
+ {
+ GtkTreePath *path;
+
+ path = gtk_tree_model_get_path (model, &iter);
+ gtk_tree_model_row_changed (model, path, &iter);
+ gtk_tree_path_free (path);
+ }
+}
+
+static void
accounts_dialog_presence_changed_cb (TpAccount *account,
guint presence,
gchar *status,
@@ -1479,6 +1498,8 @@ accounts_dialog_presence_changed_cb (TpAccount *account,
{
/* Update the status-infobar in the details view */
accounts_dialog_update_status_infobar (dialog, account);
+
+ update_account_in_treeview (dialog, account);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]