Initialize the address_format field. Absence of this was causing crashes.
authorHans Petter Jansson <hpj@ximian.com>
Tue, 16 Dec 2003 04:30:32 +0000 (04:30 +0000)
committerHans Petter <hansp@src.gnome.org>
Tue, 16 Dec 2003 04:30:32 +0000 (04:30 +0000)
commitbc819a1cfd88336756afd4db3d03e76560b1c7d2
treea33aa79545812dbd3413a3ccdba800ca693b4500
parent31427c527860507aef84bb3231536ac931227fd7
Initialize the address_format field. Absence of this was causing crashes.

2003-12-15  Hans Petter Jansson  <hpj@ximian.com>

* libebook/e-contact.c (adr_getter): Initialize the address_format
field. Absence of this was causing crashes.
(e_contact_set_property): For synthetic attr_type fields, add a
case for struct/get_set alongside strings. This makes addresses work.
(e_contact_get_property): For multi_elem strings, count the matching
attributes instead of trying to get a list from the first attribute
encountered (which is what list_elem does). This makes e-mail
addresses work.
addressbook/ChangeLog
addressbook/libebook/e-contact.c