aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-18 23:42:39 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-19 15:26:25 +0800
commit5f8f65f8c95b7c01138992190b559e00b0790962 (patch)
tree0ec4bd6e2068d00f303773b2405dd34343bd4e85
parent8cfb78f8251e9cdd663bc92b7cf4e0ce00f0d9e3 (diff)
downloadgsoc2013-empathy-5f8f65f8c95b7c01138992190b559e00b0790962.tar
gsoc2013-empathy-5f8f65f8c95b7c01138992190b559e00b0790962.tar.gz
gsoc2013-empathy-5f8f65f8c95b7c01138992190b559e00b0790962.tar.bz2
gsoc2013-empathy-5f8f65f8c95b7c01138992190b559e00b0790962.tar.lz
gsoc2013-empathy-5f8f65f8c95b7c01138992190b559e00b0790962.tar.xz
gsoc2013-empathy-5f8f65f8c95b7c01138992190b559e00b0790962.tar.zst
gsoc2013-empathy-5f8f65f8c95b7c01138992190b559e00b0790962.zip
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
-rw-r--r--libempathy/empathy-client-factory.c18
1 files changed, 18 insertions, 0 deletions
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
@@ -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;
}