diff options
author | Chris Toshok <toshok@ximian.com> | 2001-03-02 18:27:27 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-03-02 18:27:27 +0800 |
commit | deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68 (patch) | |
tree | 8fb16c7097808d1416a8144f34ee11d11e01ed54 | |
parent | 81b0fea2f0774ddb0ed5a7dfa95b73ce6b2849ed (diff) | |
download | gsoc2013-evolution-deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68.tar gsoc2013-evolution-deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68.tar.gz gsoc2013-evolution-deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68.tar.bz2 gsoc2013-evolution-deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68.tar.lz gsoc2013-evolution-deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68.tar.xz gsoc2013-evolution-deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68.tar.zst gsoc2013-evolution-deec95c6d5c7e7ac6e4fab24cfa1b05f4283be68.zip |
implement properly, we support everything.
2001-03-02 Chris Toshok <toshok@ximian.com>
* backend/pas/pas-backend-file.c
(pas_backend_file_process_get_supported_fields): implement
properly, we support everything.
svn path=/trunk/; revision=8514
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-file.c | 12 |
2 files changed, 17 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 4df49f96e6..90bebc2227 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-03-02 Chris Toshok <toshok@ximian.com> + + * backend/pas/pas-backend-file.c + (pas_backend_file_process_get_supported_fields): implement + properly, we support everything. + 2001-03-01 Jon Trowbridge <trow@ximian.com> * gui/component/select-names/e-select-names-bonobo.c diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c index 970dbac105..04c442461a 100644 --- a/addressbook/backend/pas/pas-backend-file.c +++ b/addressbook/backend/pas/pas-backend-file.c @@ -1104,8 +1104,18 @@ pas_backend_file_process_get_supported_fields (PASBackend *backend, PASRequest *req) { EList *fields = e_list_new ((EListCopyFunc)g_strdup, (EListFreeFunc)g_free, NULL); + ECardSimple *card; + int i; + + /* we support everything, so instantiate an e-card, and loop + through all fields, adding their ecard_fields. */ + + card = e_card_simple_new (e_card_new ("")); + + for (i = 0; i < E_CARD_SIMPLE_FIELD_LAST; i ++) + e_list_append (fields, e_card_simple_get_ecard_field (card, i)); - printf ("in pas_backend_file_get_supported_fields\n"); + gtk_object_unref (GTK_OBJECT (card)); pas_book_respond_get_supported_fields (book, GNOME_Evolution_Addressbook_BookListener_Success, |