Choose the first filled in address field here. Fixes Ximian bug #2222.
2002-01-09 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor.c (set_fields): Choose the first filled in address field here. Fixes Ximian bug #2222. svn path=/trunk/; revision=15280
This commit is contained in:

committed by
Chris Lahey

parent
42e8edbe5c
commit
f3e790f416
@ -1,3 +1,8 @@
|
||||
2002-01-09 Christopher James Lahey <clahey@ximian.com>
|
||||
|
||||
* gui/contact-editor/e-contact-editor.c (set_fields): Choose the
|
||||
first filled in address field here. Fixes Ximian bug #2222.
|
||||
|
||||
2002-01-03 Joe Shaw <joe@ximian.com>
|
||||
|
||||
* backend/ebook/test-card.c: Add a test for getting arbitrary
|
||||
|
@ -1941,6 +1941,8 @@ static void
|
||||
set_fields(EContactEditor *editor)
|
||||
{
|
||||
GtkWidget *entry;
|
||||
GtkWidget *label_widget;
|
||||
int i;
|
||||
|
||||
entry = glade_xml_get_widget(editor->gui, "entry-phone1");
|
||||
if (entry && GTK_IS_ENTRY(entry))
|
||||
@ -1962,7 +1964,27 @@ set_fields(EContactEditor *editor)
|
||||
if (entry && GTK_IS_ENTRY(entry))
|
||||
set_field(GTK_ENTRY(entry), e_card_simple_get_email(editor->simple, editor->email_choice));
|
||||
|
||||
set_address_field(editor, -1);
|
||||
|
||||
|
||||
e_contact_editor_build_address_ui (editor);
|
||||
|
||||
for (i = 0; i < E_CARD_SIMPLE_ADDRESS_ID_LAST; i++) {
|
||||
const ECardAddrLabel *address = e_card_simple_get_address(editor->simple, i);
|
||||
|
||||
if (address && address->data && *address->data)
|
||||
break;
|
||||
}
|
||||
if (i == E_CARD_SIMPLE_ADDRESS_ID_LAST)
|
||||
i = 0;
|
||||
|
||||
label_widget = glade_xml_get_widget(editor->gui, "label-address");
|
||||
if (label_widget && GTK_IS_LABEL(label_widget)) {
|
||||
gtk_object_set(GTK_OBJECT(label_widget),
|
||||
"label", _(g_list_nth_data(editor->address_list, i)),
|
||||
NULL);
|
||||
}
|
||||
|
||||
set_address_field(editor, i);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user