From e52cd76bd60056abc4c142065ae0c8d34a169f58 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 27 Jul 2000 10:40:42 +0000 Subject: flesh out ifdef'ed out code. need to write merge_ecard_with_remote_record. svn path=/trunk/; revision=4383 --- addressbook/conduit/address-conduit.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'addressbook/conduit') diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c index 055a9fdbff..fdac250a10 100644 --- a/addressbook/conduit/address-conduit.c +++ b/addressbook/conduit/address-conduit.c @@ -414,21 +414,19 @@ update_record (GnomePilotConduitStandardAbs *conduit, WARN ("update_record: failed to add card to ebook\n"); } else { #if 0 - /* XXX toshok: need to figure out exactly what should - be done here - default to the existing ecard and - overwrite with information from the pilot? */ - iCalObject *new_obj; - LOG ("Found"); - printf ("Found\n"); - new_obj = ecard_from_remote_record (conduit, remote, obj); - obj = new_obj; + EBookStatus commit_status; + + ecard = merge_ecard_with_remote_record (ctxt, ecard, remote); + + e_book_commit_card (ctxt->ebook, ecard, status_cb, &commit_status); + + gtk_main (); /* enter sub mainloop */ + + if (commit_status != E_BOOK_STATUS_SUCCESS) + WARN ("update_record: failed to update card in ebook\n"); #endif } -#if 0 - /* update record on server */ - update_ecard (conduit, ecard, ctxt); -#endif free_Address(&address); return 0; -- cgit v1.2.3