[empathy/mc5: 243/483] Set presence on accounts when they become ready
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/mc5: 243/483] Set presence on accounts when they become ready
- Date: Fri, 21 Aug 2009 17:19:24 +0000 (UTC)
commit d72ca1549ebfe0648060f12416a44530566c066b
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date: Sat Aug 1 16:23:17 2009 +0200
Set presence on accounts when they become ready
libempathy/empathy-account-manager.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index 18eff35..45d9068 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -327,6 +327,10 @@ account_manager_account_ready_cb (GObject *obj,
G_CALLBACK (emp_account_removed_cb), manager);
empathy_account_manager_check_ready (manager);
+
+ /* update the account to the desired global presence */
+ empathy_account_request_presence (account, priv->desired_presence,
+ priv->desired_status, priv->desired_status_message);
}
static EmpathyAccount *
@@ -837,6 +841,9 @@ empathy_account_manager_request_global_presence (
GHashTableIter iter;
gpointer value;
+ DEBUG ("request global presence, type: %d, status: %s, message: %s",
+ type, status, message);
+
g_hash_table_iter_init (&iter, priv->accounts);
while (g_hash_table_iter_next (&iter, NULL, &value))
{
@@ -850,7 +857,7 @@ empathy_account_manager_request_global_presence (
}
/* save the requested global presence, to use it in case we create
- * new accounts.
+ * new accounts or some accounts become ready.
*/
priv->desired_presence = type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]