From eb4193538b99cf9d49ad0650b1bb816844361ab5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 28 Jul 2010 15:55:38 +0200 Subject: Show vCard avatars --- src/gui/CellRendererContact.vala | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/gui') diff --git a/src/gui/CellRendererContact.vala b/src/gui/CellRendererContact.vala index bff0bba..924b601 100644 --- a/src/gui/CellRendererContact.vala +++ b/src/gui/CellRendererContact.vala @@ -46,25 +46,25 @@ public class CellRendererContact : Gtk.CellRenderer { Gee.Map.Entry? r = contact.get_resource_with_highest_priority(); if(r == null) { presenceRenderer.pixbuf = offline; - return; } - - switch(r.value.show) { - case Contact.Show.ONLINE: - presenceRenderer.pixbuf = online; - break; - case Contact.Show.AWAY: - presenceRenderer.pixbuf = away; - break; - case Contact.Show.DND: - presenceRenderer.pixbuf = dnd; - break; - case Contact.Show.XA: - presenceRenderer.pixbuf = xa; - break; - case Contact.Show.UNDEFINED: - presenceRenderer.pixbuf = undefined; - break; + else { + switch(r.value.show) { + case Contact.Show.ONLINE: + presenceRenderer.pixbuf = online; + break; + case Contact.Show.AWAY: + presenceRenderer.pixbuf = away; + break; + case Contact.Show.DND: + presenceRenderer.pixbuf = dnd; + break; + case Contact.Show.XA: + presenceRenderer.pixbuf = xa; + break; + default: + presenceRenderer.pixbuf = undefined; + break; + } } avatarRenderer.pixbuf = contact.avatar; -- cgit v1.2.3