diff options
author | Seth Alves <alves@src.gnome.org> | 2000-07-27 18:40:42 +0800 |
---|---|---|
committer | Seth Alves <alves@src.gnome.org> | 2000-07-27 18:40:42 +0800 |
commit | e52cd76bd60056abc4c142065ae0c8d34a169f58 (patch) | |
tree | 726a84f5120bb479e877497010bcc8cef516b773 | |
parent | 6ba6d540ca1ba4ede2ac15cf2a7f92c4cb7c067a (diff) | |
download | gsoc2013-evolution-e52cd76bd60056abc4c142065ae0c8d34a169f58.tar gsoc2013-evolution-e52cd76bd60056abc4c142065ae0c8d34a169f58.tar.gz gsoc2013-evolution-e52cd76bd60056abc4c142065ae0c8d34a169f58.tar.bz2 gsoc2013-evolution-e52cd76bd60056abc4c142065ae0c8d34a169f58.tar.lz gsoc2013-evolution-e52cd76bd60056abc4c142065ae0c8d34a169f58.tar.xz gsoc2013-evolution-e52cd76bd60056abc4c142065ae0c8d34a169f58.tar.zst gsoc2013-evolution-e52cd76bd60056abc4c142065ae0c8d34a169f58.zip |
flesh out ifdef'ed out code. need to write merge_ecard_with_remote_record.
svn path=/trunk/; revision=4383
-rw-r--r-- | addressbook/conduit/address-conduit.c | 22 |
1 files changed, 10 insertions, 12 deletions
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; |