diff options
Diffstat (limited to 'addressbook/backend')
-rw-r--r-- | addressbook/backend/ebook/e-card-simple.c | 11 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-card-simple.h | 2 |
2 files changed, 13 insertions, 0 deletions
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 */ |