From e7f020e3a2bd293193a73ed349163aec23bd310c Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 29 Oct 2001 13:43:36 +0000 Subject: New function to set the ECardName on this card and fix the file_as if 2001-10-29 Christopher James Lahey * backend/ebook/e-card-simple.c, backend/ebook/e-card-simple.h (e_card_simple_set_name): New function to set the ECardName on this card and fix the file_as if necessary. svn path=/trunk/; revision=14337 --- addressbook/backend/ebook/e-card-simple.c | 11 +++++++++++ addressbook/backend/ebook/e-card-simple.h | 2 ++ 2 files changed, 13 insertions(+) (limited to 'addressbook/backend') diff --git a/addressbook/backend/ebook/e-card-simple.c b/addressbook/backend/ebook/e-card-simple.c index 1a54ab00e6..c5c9d38c8c 100644 --- a/addressbook/backend/ebook/e-card-simple.c +++ b/addressbook/backend/ebook/e-card-simple.c @@ -1211,6 +1211,17 @@ void e_card_simple_set_arbitrary (ECardSimple *sim } } +void +e_card_simple_set_name (ECardSimple *simple, ECardName *name) +{ + int style; + style = file_as_get_style(simple); + gtk_object_set (GTK_OBJECT (simple->card), + "name", name, + NULL); + file_as_set_style(simple, style); +} + /* These map between the individual list types and ECardSimpleField */ ECardSimpleField e_card_simple_map_phone_to_field (ECardSimplePhoneId phone_id) diff --git a/addressbook/backend/ebook/e-card-simple.h b/addressbook/backend/ebook/e-card-simple.h index 1e20085708..130819c853 100644 --- a/addressbook/backend/ebook/e-card-simple.h +++ b/addressbook/backend/ebook/e-card-simple.h @@ -216,6 +216,8 @@ void e_card_simple_set_arbitrary (ECardSimple const char *key, const char *type, const char *value); +void e_card_simple_set_name (ECardSimple *simple, + ECardName *name); void e_card_simple_sync_card (ECardSimple *simple); /* These map between the individual list types and ECardSimpleField */ -- cgit v1.2.3