diff options
| author | Sushma Rai <rsushma@src.gnome.org> | 2005-06-25 10:24:54 +0000 |
|---|---|---|
| committer | Sushma Rai <rsushma@src.gnome.org> | 2005-06-25 10:24:54 +0000 |
| commit | 0c7768aff8c159a0bcaa7254ff03129bcce3ace7 (patch) | |
| tree | 29cf5df5c64a39a9fdfe67c54ac675471d57e598 | |
| parent | 4e302acc933acd0355eb068209a8ced2d3e716b4 (diff) | |
| download | evolution-data-server-0c7768aff8c159a0bcaa7254ff03129bcce3ace7.tar.gz | |
Setting TYPE=OTHER default parameter to email attribute. Fixes #240756
| -rw-r--r-- | addressbook/ChangeLog | 5 | ||||
| -rw-r--r-- | addressbook/libebook/e-contact.c | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 4a894d3f7..cf13ad789 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2005-06-25 Sushma Rai <rsushma@novell.com> + + * libebook/e-contact.c (e_contact_set_property): Setting TYPE=OTHER + default parameter to email attribute. Fixes #240756 + 2005-06-22 Tor Lillqvist <tml@novell.com> * backends/*/Makefile.am (*_LIBADD): Add libebook, libedata-book, diff --git a/addressbook/libebook/e-contact.c b/addressbook/libebook/e-contact.c index 1da5e8536..da03d9a46 100644 --- a/addressbook/libebook/e-contact.c +++ b/addressbook/libebook/e-contact.c @@ -716,6 +716,14 @@ e_contact_set_property (GObject *object, else { /* we didn't find it - add a new attribute */ attr = e_vcard_attribute_new (NULL, info->vcard_field_name); + if (!strcmp(info->vcard_field_name, "EMAIL") && + !info->attr_type1 && + !info->attr_type2) { + /* Add default type */ + e_vcard_attribute_add_param_with_value ( attr, + e_vcard_attribute_param_new (EVC_TYPE), + "OTHER"); + } e_vcard_add_attribute (E_VCARD (contact), attr); } @@ -856,7 +864,6 @@ e_contact_set_property (GObject *object, e_vcard_attribute_add_value (attr, g_value_get_string (value)); } - } else { switch (info->field_id) { |
