aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-card.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-10-19 11:32:55 +0800
committerChris Lahey <clahey@src.gnome.org>2000-10-19 11:32:55 +0800
commit6cb2f5ffe5aa4dc13eccf122ab763252aed0b025 (patch)
treee15e782baf931c8ac247e78db067b501f7d39bcd /addressbook/backend/ebook/e-card.c
parentf3533f595d179df1f433501bf7eaa0f5dbc3478c (diff)
downloadgsoc2013-evolution-6cb2f5ffe5aa4dc13eccf122ab763252aed0b025.tar
gsoc2013-evolution-6cb2f5ffe5aa4dc13eccf122ab763252aed0b025.tar.gz
gsoc2013-evolution-6cb2f5ffe5aa4dc13eccf122ab763252aed0b025.tar.bz2
gsoc2013-evolution-6cb2f5ffe5aa4dc13eccf122ab763252aed0b025.tar.lz
gsoc2013-evolution-6cb2f5ffe5aa4dc13eccf122ab763252aed0b025.tar.xz
gsoc2013-evolution-6cb2f5ffe5aa4dc13eccf122ab763252aed0b025.tar.zst
gsoc2013-evolution-6cb2f5ffe5aa4dc13eccf122ab763252aed0b025.zip
Added the function e_card_delivery_address_to_label.
2000-10-18 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'addressbook/backend/ebook/e-card.c')
-rw-r--r--addressbook/backend/ebook/e-card.c11
1 files changed, 11 insertions, 0 deletions
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
@@ -1213,6 +1213,17 @@ e_card_delivery_address_to_string(const ECardDeliveryAddress *addr)
}
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)
{
ECardAddrLabel *newaddr = g_new(ECardAddrLabel, 1);