aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-chooser.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-24 21:42:06 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-27 19:44:29 +0800
commit14dba3ce7abd486f9f081a2000b9afe356e98a5f (patch)
treedf99177951d70cdfda463604803097fc065ed889 /libempathy-gtk/empathy-account-chooser.c
parentbdecc6238a2bf3ffc94d522da466514b02014fda (diff)
downloadgsoc2013-empathy-14dba3ce7abd486f9f081a2000b9afe356e98a5f.tar
gsoc2013-empathy-14dba3ce7abd486f9f081a2000b9afe356e98a5f.tar.gz
gsoc2013-empathy-14dba3ce7abd486f9f081a2000b9afe356e98a5f.tar.bz2
gsoc2013-empathy-14dba3ce7abd486f9f081a2000b9afe356e98a5f.tar.lz
gsoc2013-empathy-14dba3ce7abd486f9f081a2000b9afe356e98a5f.tar.xz
gsoc2013-empathy-14dba3ce7abd486f9f081a2000b9afe356e98a5f.tar.zst
gsoc2013-empathy-14dba3ce7abd486f9f081a2000b9afe356e98a5f.zip
account-chooser: make sure that TP_ACCOUNT_FEATURE_CONNECTION and TP_CONNECTION_FEATURE_CAPABILITIES are prepared
Most filter will need those. https://bugzilla.gnome.org/show_bug.cgi?id=662609
Diffstat (limited to 'libempathy-gtk/empathy-account-chooser.c')
-rw-r--r--libempathy-gtk/empathy-account-chooser.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index 5aa9854e5..e7f2bd5b7 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -171,6 +171,8 @@ G_DEFINE_TYPE (EmpathyAccountChooser, empathy_account_chooser,
static void
empathy_account_chooser_init (EmpathyAccountChooser *self)
{
+ TpSimpleClientFactory *factory;
+
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
EMPATHY_TYPE_ACCOUNT_CHOOSER, EmpathyAccountChooserPriv);
@@ -186,6 +188,14 @@ empathy_account_chooser_init (EmpathyAccountChooser *self)
tp_g_signal_connect_object (self->priv->manager, "account-removed",
G_CALLBACK (account_chooser_account_removed_cb), self, 0);
+
+ /* Make sure we'll have the capabilities feature on TpAccount's connection */
+ factory = tp_proxy_get_factory (self->priv->manager);
+
+ tp_simple_client_factory_add_account_features_varargs (factory,
+ TP_ACCOUNT_FEATURE_CONNECTION, NULL);
+ tp_simple_client_factory_add_connection_features_varargs (factory,
+ TP_CONNECTION_FEATURE_CAPABILITIES, NULL);
}
static gint