aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2010-11-16 00:57:27 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2010-11-16 00:59:12 +0800
commit3889df3fdf5964f32a96912cee0c5b02e7bcfb58 (patch)
tree5edf9740e2cf8fda5d754ca48008f4fed1289ada /libempathy-gtk
parent1e22706c294c3b775d1963aabff29a0695ccf595 (diff)
downloadgsoc2013-empathy-3889df3fdf5964f32a96912cee0c5b02e7bcfb58.tar
gsoc2013-empathy-3889df3fdf5964f32a96912cee0c5b02e7bcfb58.tar.gz
gsoc2013-empathy-3889df3fdf5964f32a96912cee0c5b02e7bcfb58.tar.bz2
gsoc2013-empathy-3889df3fdf5964f32a96912cee0c5b02e7bcfb58.tar.lz
gsoc2013-empathy-3889df3fdf5964f32a96912cee0c5b02e7bcfb58.tar.xz
gsoc2013-empathy-3889df3fdf5964f32a96912cee0c5b02e7bcfb58.tar.zst
gsoc2013-empathy-3889df3fdf5964f32a96912cee0c5b02e7bcfb58.zip
Only check for presence in presence-enabled personas 2.0
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-widget.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 72acfd8a5..863ce021e 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -220,7 +220,13 @@ update_weak_contact (EmpathyIndividualWidget *self)
personas = folks_individual_get_personas (priv->individual);
for (l = personas; l != NULL; l = l->next)
{
- FolksPresence *presence = FOLKS_PRESENCE (l->data);
+ FolksPresence *presence;
+
+ /* We only want personas which implement FolksPresence */
+ if (!FOLKS_IS_PRESENCE (l->data))
+ continue;
+
+ presence = FOLKS_PRESENCE (l->data);
if (folks_presence_typecmp (folks_presence_get_presence_type (presence),
presence_type) > 0