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 --- .../gui/contact-editor/contact-editor.glade | 151 +++++++++++++++++++-- addressbook/gui/contact-editor/e-contact-editor.c | 3 + 2 files changed, 146 insertions(+), 8 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/contact-editor/contact-editor.glade b/addressbook/gui/contact-editor/contact-editor.glade index a25ae8fb9b..92f0eb8c63 100644 --- a/addressbook/gui/contact-editor/contact-editor.glade +++ b/addressbook/gui/contact-editor/contact-editor.glade @@ -2558,10 +2558,55 @@ 1 2 0 - 4 + 3 fill + + + + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 3 + 4 + + + + + + + True + PO Box: + False + False + GTK_JUSTIFY_LEFT + False + False + 1 + 0.5 + 0 + 0 + + + 0 + 1 + 3 + 4 + fill + + + @@ -2788,6 +2833,30 @@ + + + True + Address: + False + False + GTK_JUSTIFY_LEFT + False + False + 1 + 0.5 + 0 + 0 + + + 0 + 1 + 0 + 1 + fill + fill + + + True @@ -2819,15 +2888,36 @@ 1 2 0 - 4 + 3 fill - + True - Address: + True + True + True + 0 + + True + * + False + + + 1 + 2 + 3 + 4 + + + + + + + True + PO Box: False False GTK_JUSTIFY_LEFT @@ -2841,10 +2931,10 @@ 0 1 - 0 - 1 + 3 + 4 fill - fill + @@ -3128,10 +3218,55 @@ 1 2 0 - 4 + 3 fill + + + + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 3 + 4 + + + + + + + True + PO Box: + False + False + GTK_JUSTIFY_LEFT + False + False + 1 + 0.5 + 0 + 0 + + + 0 + 1 + 3 + 4 + fill + + + 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