aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/pas/pas-backend-file.c12
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,