[gnome-contacts] Don't show offline status in the contacts pane



commit 6071650467d439bbc0bc77b280088de0bfaf916b
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Aug 22 12:58:23 2011 +0200

    Don't show offline status in the contacts pane

 src/contacts-contact.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index c2fc735..5aa3cb6 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -41,7 +41,9 @@ public class Contacts.ContactPresence : Grid {
     message = contact.presence_message;
     is_phone = contact.is_phone;
 
-    if (type == PresenceType.UNSET) {
+    if (type == PresenceType.UNSET ||
+        type == PresenceType.ERROR ||
+        type == PresenceType.OFFLINE) {
       image.clear ();
       image.hide ();
       label.hide ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]