GNOME Bugzilla – Bug 359816
Contact Lookup applet support for secondary home and business phone numbers
Last modified: 2006-11-15 09:44:51 UTC
Forwarded from: https://launchpad.net/distros/ubuntu/+source/contact-lookup-applet/+bug/62760 Contact lookup applet displays only the following fields in it's popup dialog. E_CONTACT_PHONE_HOME E_CONTACT_PHONE_BUSINESS Since often people has multiple home and business phones, i needed support in it also for E_CONTACT_PHONE_HOME_2 E_CONTACT_PHONE_BUSINESS_2 I'm attaching a diff against contact-lookup-applet-0.14-ubuntu1 that simply adds the aforementioned fields to the "phone" label.
diff -U3 -r contact-lookup-applet-0.14/src/contact-dialog.c xxxx/src/contact-dialog.c --- contact-lookup-applet-0.14/src/contact-dialog.c 2004-09-30 18:46:53.000000000 +0200 +++ xxxx/src/contact-dialog.c 2006-09-28 11:48:31.454704500 +0200 @@ -320,12 +320,22 @@ g_string_append (s, phone); g_string_append (s, _(" (home)\n")); } + phone = e_contact_get_const (contact, E_CONTACT_PHONE_HOME_2); + if (phone) { + g_string_append (s, phone); + g_string_append (s, _(" (home)\n")); + } phone = e_contact_get_const (contact, E_CONTACT_PHONE_BUSINESS); if (phone) { g_string_append (s, phone); g_string_append (s, _(" (work)\n")); } + phone = e_contact_get_const (contact, E_CONTACT_PHONE_BUSINESS_2); + if (phone) { + g_string_append (s, phone); + g_string_append (s, _(" (work)\n")); + } phone = e_contact_get_const (contact, E_CONTACT_PHONE_MOBILE); if (phone) {
Committed to CVS, thanks.