diff options
author | JP Rosevear <jpr@ximian.com> | 2001-09-27 01:31:33 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-09-27 01:31:33 +0800 |
commit | 781b9204d274e1fa64c256e71147392e83cd2f08 (patch) | |
tree | e58bbf476e0b4564c6d2f5cbc7f710554d3fa3b9 /addressbook/backend | |
parent | fbc4f8863895af7fd34d34f133e64f60a805c825 (diff) | |
download | gsoc2013-evolution-781b9204d274e1fa64c256e71147392e83cd2f08.tar.gz gsoc2013-evolution-781b9204d274e1fa64c256e71147392e83cd2f08.tar.zst gsoc2013-evolution-781b9204d274e1fa64c256e71147392e83cd2f08.zip |
set the last_use and use_score fields of the card to known values so the
2001-09-26 JP Rosevear <jpr@ximian.com>
* backend/pas/pas-backend-file.c (pas_backend_file_changes): set
the last_use and use_score fields of the card to known values so
the card doesn't register as changed when only they have changed
2001-09-26 Peter Williams <peterw@ximian.com>
* conduit/address-conduit.c (ecard_from_remote_record): Fix this function
to set email addresses properly, and handle multiple occurrences of
email addresses, home phone numbers, and business phone numbers.
svn path=/trunk/; revision=13153
Diffstat (limited to 'addressbook/backend')
-rw-r--r-- | addressbook/backend/pas/pas-backend-file.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index 4d222841b5..990d53e704 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -391,9 +391,19 @@ pas_backend_file_changes (PASBackendFile *bf, /* don't include the version in the list of cards */ if (id_dbt.size != strlen(PAS_BACKEND_FILE_VERSION_NAME) + 1 || strcmp (id_dbt.data, PAS_BACKEND_FILE_VERSION_NAME)) { + ECard *card; char *id = id_dbt.data; - char *vcard_string = vcard_dbt.data; - + char *vcard_string; + + /* Remove fields the user can't change + * and can change without the rest of the + * card changing + */ + card = e_card_new (vcard_dbt.data); + gtk_object_set (GTK_OBJECT (card), "last_use", NULL, "use_score", 0.0, NULL); + vcard_string = e_card_get_vcard_assume_utf8 (card); + gtk_object_unref (GTK_OBJECT (card)); + /* check what type of change has occurred, if any */ switch (e_dbhash_compare (ehash, id, vcard_string)) { case E_DBHASH_STATUS_SAME: |