aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2011-05-03 08:21:04 +0800
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-06-07 00:30:51 +0800
commitfaa40483fd000099a0593c09d0e92b938beaaaa7 (patch)
tree1373f3c1421aac65ae4259284caf3e09b83b3cf6
parenta17f14769b6867e240f1f79288ed1d33ec51760b (diff)
downloadgsoc2013-empathy-faa40483fd000099a0593c09d0e92b938beaaaa7.tar
gsoc2013-empathy-faa40483fd000099a0593c09d0e92b938beaaaa7.tar.gz
gsoc2013-empathy-faa40483fd000099a0593c09d0e92b938beaaaa7.tar.bz2
gsoc2013-empathy-faa40483fd000099a0593c09d0e92b938beaaaa7.tar.lz
gsoc2013-empathy-faa40483fd000099a0593c09d0e92b938beaaaa7.tar.xz
gsoc2013-empathy-faa40483fd000099a0593c09d0e92b938beaaaa7.tar.zst
gsoc2013-empathy-faa40483fd000099a0593c09d0e92b938beaaaa7.zip
Don't conflate TpfPersona and FolksPersona.
-rw-r--r--libempathy-gtk/empathy-individual-store.c4
-rw-r--r--libempathy-gtk/empathy-individual-widget.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-individual-store.c b/libempathy-gtk/empathy-individual-store.c
index ef786d7e3..b804b2259 100644
--- a/libempathy-gtk/empathy-individual-store.c
+++ b/libempathy-gtk/empathy-individual-store.c
@@ -166,8 +166,8 @@ individual_get_client_types (FolksIndividual *individual)
{
FolksPresenceDetails *presence;
- /* We only want personas which implement FolksPresenceDetails */
- if (!FOLKS_IS_PRESENCE_DETAILS (l->data))
+ /* We only want personas which have presence and a TpContact */
+ if (!empathy_folks_persona_is_interesting (persona))
continue;
presence = FOLKS_PRESENCE_DETAILS (l->data);
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index dc45191a6..d0697d261 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -229,20 +229,20 @@ update_weak_contact (EmpathyIndividualWidget *self)
for (l = personas; l != NULL; l = l->next)
{
FolksPresenceDetails *presence;
+ FolksPresenceType presence_type_cur;
- /* We only want personas which implement FolksPresence */
- if (!FOLKS_IS_PRESENCE_DETAILS (l->data))
+ /* We only want personas which have presence and a TpContact */
+ if (!empathy_folks_persona_is_interesting (FOLKS_PERSONA (presence)))
continue;
presence = FOLKS_PRESENCE_DETAILS (l->data);
+ presence_type_cur = folks_presence_details_get_presence_type (
+ presence);
if (folks_presence_details_typecmp (
- folks_presence_details_get_presence_type (presence),
- presence_type) > 0 &&
- empathy_folks_persona_is_interesting (FOLKS_PERSONA (presence)))
+ presence_type_cur, presence_type) > 0)
{
- presence_type = folks_presence_details_get_presence_type (
- presence);
+ presence_type = presence_type_cur;
tp_contact = tpf_persona_get_contact (TPF_PERSONA (l->data));
}
}