[gnome-contacts/wip/map-widget: 6/7] Add a map to the contacts sheet
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/map-widget: 6/7] Add a map to the contacts sheet
- Date: Wed, 17 Dec 2014 06:35:26 +0000 (UTC)
commit 2bc3aae06ec98d9e93126531750295d975bc1bbf
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Tue Dec 16 07:44:16 2014 -0500
Add a map to the contacts sheet
src/contacts-contact-sheet.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index 0582615..37b7330 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -221,6 +221,13 @@ public class Contacts.ContactSheet : Grid {
}
add_row_with_label (ref i, TypeSet.general.format_type (addr), all_strs);
}
+
+ if (addr_details.postal_addresses.size > 0) {
+ var map = new AddressMap (c, addr_details.postal_addresses);
+ map.load ();
+ attach (map, 1, i, 1, 1);
+ i++;
+ }
}
if (i != 3)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]