diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-09-23 05:04:24 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-09-23 05:04:24 +0800 |
commit | 402c6cc0feb0c86d68aa5e5bbb117e61c77f859a (patch) | |
tree | f26cfd3b35bbd76003d03703501868779a4957be | |
parent | 0eb67058be341cdc5f06e53aa018c7124c4cff58 (diff) | |
download | gsoc2013-evolution-402c6cc0feb0c86d68aa5e5bbb117e61c77f859a.tar.gz gsoc2013-evolution-402c6cc0feb0c86d68aa5e5bbb117e61c77f859a.tar.zst gsoc2013-evolution-402c6cc0feb0c86d68aa5e5bbb117e61c77f859a.zip |
add E_CARD_SIMPLE_FIELD_FAMILY_NAME to the enum.
2000-09-22 Chris Toshok <toshok@helixcode.com>
* backend/ebook/e-card-simple.h: add E_CARD_SIMPLE_FIELD_FAMILY_NAME to the enum.
* backend/ebook/e-card-simple.c (field_data): add E_CARD_SIMPLE_FIELD_FAMILY_NAME.
(e_card_simple_get): add getter for FAMILY_NAME.
svn path=/trunk/; revision=5553
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-card-simple.c | 7 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-card-simple.h | 1 |
3 files changed, 15 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 5035203a79..e3db709b8a 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2000-09-22 Chris Toshok <toshok@helixcode.com> + + * backend/ebook/e-card-simple.h: add E_CARD_SIMPLE_FIELD_FAMILY_NAME to the enum. + + * backend/ebook/e-card-simple.c (field_data): add E_CARD_SIMPLE_FIELD_FAMILY_NAME. + (e_card_simple_get): add getter for FAMILY_NAME. + 2000-09-22 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/e-card.c: Made addresses be quoted printable again diff --git a/addressbook/backend/ebook/e-card-simple.c b/addressbook/backend/ebook/e-card-simple.c index 54cd9c6419..7cb644a802 100644 --- a/addressbook/backend/ebook/e-card-simple.c +++ b/addressbook/backend/ebook/e-card-simple.c @@ -76,6 +76,7 @@ static ECardSimpleFieldData field_data[] = { { E_CARD_SIMPLE_FIELD_FILE_AS, "file_as", "File As", "", 0, E_CARD_SIMPLE_INTERNAL_TYPE_STRING }, { E_CARD_SIMPLE_FIELD_FULL_NAME, "full_name", "Name", "Name", 0, E_CARD_SIMPLE_INTERNAL_TYPE_STRING }, + { E_CARD_SIMPLE_FIELD_FAMILY_NAME, "family_name", "Family Name", "Family Name", 0, E_CARD_SIMPLE_INTERNAL_TYPE_SPECIAL }, { E_CARD_SIMPLE_FIELD_EMAIL, "", "Email", "Email", E_CARD_SIMPLE_EMAIL_ID_EMAIL, E_CARD_SIMPLE_INTERNAL_TYPE_EMAIL }, { E_CARD_SIMPLE_FIELD_PHONE_PRIMARY, "", "Primary", "Prim", E_CARD_SIMPLE_PHONE_ID_PRIMARY, E_CARD_SIMPLE_INTERNAL_TYPE_PHONE }, { E_CARD_SIMPLE_FIELD_PHONE_BUSINESS, "", "Business", "Bus", E_CARD_SIMPLE_PHONE_ID_BUSINESS, E_CARD_SIMPLE_INTERNAL_TYPE_PHONE }, @@ -725,6 +726,7 @@ char *e_card_simple_get (ECardSimple *simple, const ECardPhone *phone; const char *string; ECardDate *date; + ECardName *name; switch(type) { case E_CARD_SIMPLE_INTERNAL_TYPE_STRING: gtk_object_get(GTK_OBJECT(simple->card), @@ -766,6 +768,11 @@ char *e_card_simple_get (ECardSimple *simple, "org", &string, NULL); return g_strdup(string); + case E_CARD_SIMPLE_FIELD_FAMILY_NAME: + gtk_object_get (GTK_OBJECT(simple->card), + "name", &name, + NULL); + return g_strdup (name->family); default: return NULL; } diff --git a/addressbook/backend/ebook/e-card-simple.h b/addressbook/backend/ebook/e-card-simple.h index 6b9d7391fc..e23f5fe90c 100644 --- a/addressbook/backend/ebook/e-card-simple.h +++ b/addressbook/backend/ebook/e-card-simple.h @@ -78,6 +78,7 @@ enum _ECardSimpleType { enum _ECardSimpleField { E_CARD_SIMPLE_FIELD_FILE_AS, E_CARD_SIMPLE_FIELD_FULL_NAME, + E_CARD_SIMPLE_FIELD_FAMILY_NAME, E_CARD_SIMPLE_FIELD_EMAIL, E_CARD_SIMPLE_FIELD_PHONE_PRIMARY, E_CARD_SIMPLE_FIELD_PHONE_BUSINESS, |