[empathy] ask factory to prepare TP_ACCOUNT_FEATURE_CONNECTION



commit 5f8f65f8c95b7c01138992190b559e00b0790962
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Aug 18 17:42:39 2011 +0200

    ask factory to prepare TP_ACCOUNT_FEATURE_CONNECTION
    
    So we can rely on the connection returned by tp_account_get_connection() to be
    usable right away.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656831

 libempathy/empathy-client-factory.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-client-factory.c b/libempathy/empathy-client-factory.c
index 5055a26..37ad18f 100644
--- a/libempathy/empathy-client-factory.c
+++ b/libempathy/empathy-client-factory.c
@@ -114,6 +114,21 @@ empathy_client_factory_dup_channel_features (TpSimpleClientFactory *factory,
 }
 
 static GArray *
+empathy_client_factory_dup_account_features (TpSimpleClientFactory *factory,
+    TpAccount *account)
+{
+  GArray *features;
+  GQuark feature;
+
+  features = chainup->dup_account_features (factory, account);
+
+  feature = TP_ACCOUNT_FEATURE_CONNECTION;
+  g_array_append_val (features, feature);
+
+  return features;
+}
+
+static GArray *
 empathy_client_factory_dup_connection_features (TpSimpleClientFactory *factory,
     TpConnection *connection)
 {
@@ -137,6 +152,9 @@ empathy_client_factory_class_init (EmpathyClientFactoryClass *cls)
   simple_class->dup_channel_features =
     empathy_client_factory_dup_channel_features;
 
+  simple_class->dup_account_features =
+    empathy_client_factory_dup_account_features;
+
   simple_class->dup_connection_features =
     empathy_client_factory_dup_connection_features;
 }



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