aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-29 21:43:36 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-29 21:43:36 +0800
commite7f020e3a2bd293193a73ed349163aec23bd310c (patch)
treea9a4d708a7e0e4d7f4c4e5987c4f721d117ca371 /addressbook/backend
parent6dae7abcf15b057aae8a4fc0e8f8f7fb1f269172 (diff)
downloadgsoc2013-evolution-e7f020e3a2bd293193a73ed349163aec23bd310c.tar.gz
gsoc2013-evolution-e7f020e3a2bd293193a73ed349163aec23bd310c.tar.zst
gsoc2013-evolution-e7f020e3a2bd293193a73ed349163aec23bd310c.zip
New function to set the ECardName on this card and fix the file_as if
2001-10-29 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-card-simple.c11
-rw-r--r--addressbook/backend/ebook/e-card-simple.h2
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 */