aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account-manager.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-08-01 22:23:17 +0800
committerCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-08-01 22:23:17 +0800
commitd72ca1549ebfe0648060f12416a44530566c066b (patch)
tree75dc2af4eef10efaa460f9bb5d712b676272a575 /libempathy/empathy-account-manager.c
parent9f9890593181c881b09773d7f8e68a402d8ce7fa (diff)
downloadgsoc2013-empathy-d72ca1549ebfe0648060f12416a44530566c066b.tar
gsoc2013-empathy-d72ca1549ebfe0648060f12416a44530566c066b.tar.gz
gsoc2013-empathy-d72ca1549ebfe0648060f12416a44530566c066b.tar.bz2
gsoc2013-empathy-d72ca1549ebfe0648060f12416a44530566c066b.tar.lz
gsoc2013-empathy-d72ca1549ebfe0648060f12416a44530566c066b.tar.xz
gsoc2013-empathy-d72ca1549ebfe0648060f12416a44530566c066b.tar.zst
gsoc2013-empathy-d72ca1549ebfe0648060f12416a44530566c066b.zip
Set presence on accounts when they become ready
Diffstat (limited to 'libempathy/empathy-account-manager.c')
-rw-r--r--libempathy/empathy-account-manager.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index 18eff355f..45d906889 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;