[empathy/gnome-2-34: 44/60] auth-factory: add a comment as to why we're also an approver
- From: Jonny Lamb <jonnylamb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34: 44/60] auth-factory: add a comment as to why we're also an approver
- Date: Wed, 26 Jan 2011 14:40:29 +0000 (UTC)
commit fbcf062fd6e64122fe5727a8765585b0b68c1805
Author: Jonny Lamb <jonnylamb gnome org>
Date: Tue Dec 14 16:31:57 2010 +0000
auth-factory: add a comment as to why we're also an approver
Signed-off-by: Jonny Lamb <jonnylamb gnome org>
libempathy/empathy-auth-factory.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-auth-factory.c b/libempathy/empathy-auth-factory.c
index 59c256e..443962a 100644
--- a/libempathy/empathy-auth-factory.c
+++ b/libempathy/empathy-auth-factory.c
@@ -475,6 +475,12 @@ empathy_auth_factory_constructed (GObject *obj)
G_TYPE_STRING, TP_IFACE_CHANNEL_INTERFACE_SASL_AUTHENTICATION,
NULL));
+ /* We are also an observer so that we can see new auth channels
+ * popping up and if we have the password already saved to one
+ * account where an auth channel has just appeared we can call
+ * Claim() on the CDO so the approver won't get it, which makes
+ * sense. */
+
tp_base_client_take_observer_filter (client, tp_asv_new (
/* ChannelType */
TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]