[empathy] client-factory: prepare TP_CONNECTION_FEATURE_CONTACT_LIST_PROPERTIES
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] client-factory: prepare TP_CONNECTION_FEATURE_CONTACT_LIST_PROPERTIES
- Date: Tue, 8 Nov 2011 12:39:35 +0000 (UTC)
commit 63ec3726a865e5ae6b5ed5cdbcee290a3415f707
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Nov 3 15:00:57 2011 +0100
client-factory: prepare TP_CONNECTION_FEATURE_CONTACT_LIST_PROPERTIES
https://bugzilla.gnome.org/show_bug.cgi?id=663327
libempathy/empathy-client-factory.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-client-factory.c b/libempathy/empathy-client-factory.c
index beaa621..edc5463 100644
--- a/libempathy/empathy-client-factory.c
+++ b/libempathy/empathy-client-factory.c
@@ -161,6 +161,12 @@ empathy_client_factory_dup_connection_features (TpSimpleClientFactory *factory,
feature = TP_CONNECTION_FEATURE_CONTACT_BLOCKING;
g_array_append_val (features, feature);
+ /* Most empathy-* may allow user to add a contact to his contact list. We
+ * need this property to check if the connection allows it. It's cheap to
+ * prepare anyway as it will just call GetAll() on the ContactList iface. */
+ feature = TP_CONNECTION_FEATURE_CONTACT_LIST_PROPERTIES;
+ g_array_append_val (features, feature);
+
return features;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]