[gnome-contacts] Display nickname in contacts display (unless already visible)



commit 60a29c1d043bfb4cb9d762f2e72532ae15b6bc6f
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Sep 1 14:14:03 2011 +0200

    Display nickname in contacts display (unless already visible)

 src/contacts-contact-pane.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 495e41c..b88ae03 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1183,6 +1183,11 @@ public class Contacts.ContactPane : Grid {
 
     delete_menu_item.set_sensitive (can_remove_all);
 
+    var nickname = contact.individual.nickname;
+    if (nickname != null && nickname != "" &&
+	contact.get_secondary_string_source () != "nickname")
+      fields_layout.add_label_detail (_("Nickname"), nickname);
+
     var emails = Contact.sort_fields<EmailFieldDetails>(contact.individual.email_addresses);
     foreach (var email in emails) {
       var type = TypeSet.general.format_type (email);



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