From 7aa5dc7ecdaca5b1b7d461576ea2b281ba3758c0 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Wed, 12 May 2004 17:22:22 +0000 Subject: Add PO box entries. 2004-05-12 Hans Petter Jansson * gui/contact-editor/contact-editor.glade: Add PO box entries. * gui/contact-editor/e-contact-editor.c (init_address_record): Hook up PO box entry. (fill_in_address_record): Ditto. (extract_address_record): Ditto. svn path=/trunk/; revision=25884 --- addressbook/gui/contact-editor/e-contact-editor.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'addressbook/gui/contact-editor/e-contact-editor.c') diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 8d5bac7ac3..c3e6d3b99b 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -1115,6 +1115,7 @@ init_address_record (EContactEditor *editor, gint record) init_address_field (editor, record, "state"); init_address_field (editor, record, "zip"); init_address_field (editor, record, "country"); + init_address_field (editor, record, "pobox"); } static void @@ -1173,6 +1174,7 @@ fill_in_address_record (EContactEditor *editor, gint record) fill_in_address_field (editor, record, "state", address->region); fill_in_address_field (editor, record, "zip", address->code); fill_in_address_field (editor, record, "country", address->country); + fill_in_address_field (editor, record, "pobox", address->po); g_boxed_free (e_contact_address_get_type (), address); } @@ -1250,6 +1252,7 @@ extract_address_record (EContactEditor *editor, gint record) address->region = extract_address_field (editor, record, "state"); address->code = extract_address_field (editor, record, "zip"); address->country = extract_address_field (editor, record, "country"); + address->po = extract_address_field (editor, record, "pobox"); if (nonempty (address->street) || nonempty (address->ext) || -- cgit v1.2.3