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