[empathy: 4/7] Only check for presence in presence-enabled personas 2.0
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 4/7] Only check for presence in presence-enabled personas 2.0
- Date: Wed, 17 Nov 2010 14:29:39 +0000 (UTC)
commit 3889df3fdf5964f32a96912cee0c5b02e7bcfb58
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Mon Nov 15 17:57:27 2010 +0100
Only check for presence in presence-enabled personas 2.0
libempathy-gtk/empathy-individual-widget.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 72acfd8..863ce02 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]