diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-10-27 08:49:19 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-10-27 08:49:19 +0800 |
commit | d58f6a2066522cad2028dba9b518a1d7fdfbbc34 (patch) | |
tree | 6f89ed66e06c68e9bd41ffbba7e15dc4221b16c9 /libempathy-gtk | |
parent | 6678cb7bc2dbd2b57925bdb70da0cb64bad03e2c (diff) | |
parent | fcb0e76deed0527edb5caff02dd0edf785b1f82e (diff) | |
download | gsoc2013-empathy-d58f6a2066522cad2028dba9b518a1d7fdfbbc34.tar gsoc2013-empathy-d58f6a2066522cad2028dba9b518a1d7fdfbbc34.tar.gz gsoc2013-empathy-d58f6a2066522cad2028dba9b518a1d7fdfbbc34.tar.bz2 gsoc2013-empathy-d58f6a2066522cad2028dba9b518a1d7fdfbbc34.tar.lz gsoc2013-empathy-d58f6a2066522cad2028dba9b518a1d7fdfbbc34.tar.xz gsoc2013-empathy-d58f6a2066522cad2028dba9b518a1d7fdfbbc34.tar.zst gsoc2013-empathy-d58f6a2066522cad2028dba9b518a1d7fdfbbc34.zip |
Merge branch 'bug-662727'
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-chooser.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-chooser.c b/libempathy-gtk/empathy-contact-chooser.c index b16540cf3..7f31e711e 100644 --- a/libempathy-gtk/empathy-contact-chooser.c +++ b/libempathy-gtk/empathy-contact-chooser.c @@ -187,6 +187,14 @@ out: } static void +contact_capabilities_changed (TpContact *contact, + GParamSpec *pspec, + EmpathyContactChooser *self) +{ + empathy_individual_view_refilter (self->priv->view); +} + +static void get_contacts_cb (TpConnection *connection, guint n_contacts, TpContact * const *contacts, @@ -224,6 +232,10 @@ get_contacts_cb (TpConnection *connection, individual = folks_individual_new (personas); + /* listen for updates to the capabilities */ + tp_g_signal_connect_object (contacts[0], "notify::capabilities", + G_CALLBACK (contact_capabilities_changed), self, 0); + /* Pass ownership to the list */ ctx->individuals = g_list_prepend (ctx->individuals, individual); |