diff options
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; |