[gnome-contacts] Add support for department, manager and assistance (readonly)
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Add support for department, manager and assistance (readonly)
- Date: Mon, 5 Sep 2011 12:25:22 +0000 (UTC)
commit 0e7a1434afbf979935d93c3224f734c06c4582e4
Author: Alexander Larsson <alexl redhat com>
Date: Mon Sep 5 14:24:44 2011 +0200
Add support for department, manager and assistance (readonly)
src/contacts-contact-pane.vala | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 240ef52..de632cc 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -1444,6 +1444,14 @@ public class Contacts.ContactPane : Grid {
fields_layout.add_label (_("Company"));
fields_layout.add_detail (role.organisation_name);
}
+ var org_units = role_detail.get_parameter_values ("org_unit");
+ foreach (var org_unit in org_units) {
+ if (org_unit != null &&
+ org_unit != "") {
+ fields_layout.add_label (_("Department"));
+ fields_layout.add_detail (org_unit);
+ }
+ }
if (role.role != null &&
role.role != "") {
fields_layout.add_label (_("Profession"));
@@ -1454,6 +1462,22 @@ public class Contacts.ContactPane : Grid {
fields_layout.add_label (_("Title"));
fields_layout.add_detail (role.title);
}
+ var managers = role_detail.get_parameter_values ("manager");
+ foreach (var manager in managers) {
+ if (manager != null &&
+ manager != "") {
+ fields_layout.add_label (_("Manager"));
+ fields_layout.add_detail (manager);
+ }
+ }
+ var assistants = role_detail.get_parameter_values ("assistant");
+ foreach (var assistant in assistants) {
+ if (assistant != null &&
+ assistant != "") {
+ fields_layout.add_label (_("Assistant"));
+ fields_layout.add_detail (assistant);
+ }
+ }
}
var urls = contact.individual.urls;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]