aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/ebook/e-card-simple.c11
-rw-r--r--addressbook/backend/ebook/e-card-simple.h2
3 files changed, 19 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 2553bdbb44..2fd1a3580f 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,6 +1,12 @@
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.
+
+2001-10-29 Christopher James Lahey <clahey@ximian.com>
+
+ * backend/ebook/e-card-simple.c, backend/ebook/e-card-simple.h
(e_card_simple_get): Handle returning dates here.
(e_card_simple_get_allow_newlines): New function. Returns whether
it makes much sense to have newlines in this string.
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 */