[gnome-contacts] Show the nickname
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Show the nickname
- Date: Mon, 30 May 2011 13:08:56 +0000 (UTC)
commit 83932ea388ea303e00e21d8054b94aca4b7dcebc
Author: Alexander Larsson <alexl redhat com>
Date: Mon May 30 09:11:44 2011 +0200
Show the nickname
src/contacts-app.vala | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 9b7367b..b216fbf 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -230,10 +230,13 @@ public class Contacts.App : Window {
l.set_hexpand (true);
l.set_halign (Align.START);
g.attach (l, 1, 0, 1, 1);
- l = new Label ("\xE2\x80\x9Cnick\xE2\x80\x9D");
- l.set_halign (Align.START);
- g.attach (l, 1, 1, 1, 1);
- l = new Label ("Consultant, Company Inc");
+ var nick = contact.individual.nickname;
+ if (nick != null && nick.length > 0) {
+ l = new Label ("\xE2\x80\x9C" + nick + "\xE2\x80\x9D");
+ l.set_halign (Align.START);
+ g.attach (l, 1, 1, 1, 1);
+ }
+ l = new Label ("<title>, <Company>");
l.set_halign (Align.START);
g.attach (l, 1, 2, 1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]