telepathy-glib: TpAccountManager: set the requested presence on newly created accounts
Xavier Claessens
xclaesse at kemper.freedesktop.org
Tue Jul 24 04:54:28 PDT 2012
Module: telepathy-glib
Branch: master
Commit: 523691b44584947b25ce1e93a0191e60c60ca78f
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=523691b44584947b25ce1e93a0191e60c60ca78f
Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date: Tue Jul 24 13:45:25 2012 +0200
TpAccountManager: set the requested presence on newly created accounts
---
telepathy-glib/account-manager.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/telepathy-glib/account-manager.c b/telepathy-glib/account-manager.c
index 0e78bbc..6d31a01 100644
--- a/telepathy-glib/account-manager.c
+++ b/telepathy-glib/account-manager.c
@@ -989,6 +989,16 @@ insert_account (TpAccountManager *self,
g_strdup (tp_proxy_get_object_path (account)),
g_object_ref (account));
+ /* If a global presence has been requested, set in on new accounts as well */
+ if (self->priv->requested_presence != TP_CONNECTION_PRESENCE_TYPE_UNSET)
+ {
+ tp_account_request_presence_async (account,
+ self->priv->requested_presence,
+ self->priv->requested_status,
+ self->priv->requested_status_message,
+ NULL, NULL);
+ }
+
tp_g_signal_connect_object (account, "notify::enabled",
G_CALLBACK (_tp_account_manager_account_enabled_cb),
G_OBJECT (self), 0);
More information about the telepathy-commits
mailing list