diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-28 15:55:38 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-28 15:55:38 +0200 |
commit | eb4193538b99cf9d49ad0650b1bb816844361ab5 (patch) | |
tree | 1230f7cf90125217ac2d90f7fb91df3ab90ea437 /src/gui | |
parent | 7b06327c42968214730f0ad155565ebd760ad526 (diff) | |
download | ephraim-eb4193538b99cf9d49ad0650b1bb816844361ab5.tar ephraim-eb4193538b99cf9d49ad0650b1bb816844361ab5.zip |
Show vCard avatars
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/CellRendererContact.vala | 36 |
1 files changed, 18 insertions, 18 deletions
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<string, Contact.Resource>? 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; |