[gnome-online-accounts] telepathy: initialise the features we need by default for TpConnection



commit ceb9a9647f01a53af673997e488e07da05504dee
Author: Marco Barisione <marco barisione collabora co uk>
Date:   Tue Aug 27 14:36:27 2013 +0100

    telepathy: initialise the features we need by default for TpConnection
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706894

 src/goabackend/goatelepathyprovider.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/goabackend/goatelepathyprovider.c b/src/goabackend/goatelepathyprovider.c
index 5171fb9..91a655f 100644
--- a/src/goabackend/goatelepathyprovider.c
+++ b/src/goabackend/goatelepathyprovider.c
@@ -1032,15 +1032,20 @@ initialize_client_factory (void)
 {
   TpSimpleClientFactory *factory;
   TpAccountManager *account_manager;
-  GQuark features[] = {
+  GQuark account_features[] = {
       TP_ACCOUNT_FEATURE_STORAGE,
       TP_ACCOUNT_FEATURE_CONNECTION,
       0};
+  GQuark connection_features[] = {
+      TP_CONNECTION_FEATURE_AVATAR_REQUIREMENTS,
+      TP_CONNECTION_FEATURE_CONTACT_INFO,
+      0};
 
   /* We make sure that new instances of Telepathy objects will have all
    * the features we need. */
   factory = tp_simple_client_factory_new (NULL);
-  tp_simple_client_factory_add_account_features (factory, features);
+  tp_simple_client_factory_add_account_features (factory, account_features);
+  tp_simple_client_factory_add_connection_features (factory, connection_features);
 
   account_manager = tp_account_manager_new_with_factory (factory);
   tp_account_manager_set_default (account_manager);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]