From 5f8f65f8c95b7c01138992190b559e00b0790962 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 18 Aug 2011 17:42:39 +0200 Subject: 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 file changed, 18 insertions(+) (limited to 'libempathy/empathy-client-factory.c') diff --git a/libempathy/empathy-client-factory.c b/libempathy/empathy-client-factory.c index 5055a2628..37ad18ff5 100644 --- a/libempathy/empathy-client-factory.c +++ b/libempathy/empathy-client-factory.c @@ -113,6 +113,21 @@ empathy_client_factory_dup_channel_features (TpSimpleClientFactory *factory, return features; } +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; } -- cgit v1.2.3