From 6cb2f5ffe5aa4dc13eccf122ab763252aed0b025 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 19 Oct 2000 03:32:55 +0000 Subject: Added the function e_card_delivery_address_to_label. 2000-10-18 Christopher James Lahey * backend/ebook/e-card.c, backend/ebook/e-card.h: Added the function e_card_delivery_address_to_label. * contact-editor/e-contact-editor-address.c: Fixed a potential crash. * contact-editor/e-contact-editor.c: Made this save the changed data to the string version of the address. svn path=/trunk/; revision=6023 --- addressbook/backend/ebook/e-card.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'addressbook/backend/ebook/e-card.c') diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c index 940bfd84d5..e6e9d85763 100644 --- a/addressbook/backend/ebook/e-card.c +++ b/addressbook/backend/ebook/e-card.c @@ -1212,6 +1212,17 @@ e_card_delivery_address_to_string(const ECardDeliveryAddress *addr) return final; } +ECardAddrLabel * +e_card_delivery_address_to_label (const ECardDeliveryAddress *addr) +{ + ECardAddrLabel *label; + label = e_card_address_label_new(); + label->flags = addr->flags; + label->data = e_card_delivery_address_to_string(addr); + + return label; +} + ECardAddrLabel * e_card_address_label_new (void) { -- cgit v1.2.3