aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/conduit
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-21 05:48:10 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-21 05:48:10 +0800
commit64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2 (patch)
tree223b47169544bd42a0b1a6a8490862f9f58bab8d /addressbook/conduit
parentae5692831b81c6e4e7e45ebce11a2fe64f0be6f4 (diff)
downloadgsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.tar.gz
gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.tar.zst
gsoc2013-evolution-64e2a500f8e989da0b56ac7f7b6e2f4b844b9ec2.zip
Check for null strings (e_pilot_utf8_from_pchar): ditto
2000-12-20 JP Rosevear <jpr@helixcode.com> * e-pilot-util.c (e_pilot_utf8_to_pchar): Check for null strings (e_pilot_utf8_from_pchar): ditto svn path=/trunk/; revision=7106
Diffstat (limited to 'addressbook/conduit')
-rw-r--r--addressbook/conduit/address-conduit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c
index 8208d2ba8f..b31cb61c6e 100644
--- a/addressbook/conduit/address-conduit.c
+++ b/addressbook/conduit/address-conduit.c
@@ -158,7 +158,7 @@ add_card_cb (EBook *ebook, EBookStatus status, const char *id, gpointer closure)
cons->status = status;
cons->id = g_strdup (id);
-
+
gtk_main_quit();
}
@@ -372,6 +372,7 @@ local_record_from_uid (EAddrLocalRecord *local,
local_record_from_ecard (local, ecard, ctxt);
} else {
ecard = e_card_new ("");
+ ecard_set_id (ecard, uid);
local_record_from_ecard (local, ecard, ctxt);
}
}
@@ -667,6 +668,7 @@ post_sync (GnomePilotConduit *conduit,
change_id = g_strdup_printf ("pilot-sync-evolution-addressbook-%d", ctxt->cfg->pilot_id);
e_book_get_changes (ctxt->ebook, change_id, view_cb, ctxt);
g_free (change_id);
+ gtk_main ();
return 0;
}
@@ -851,8 +853,8 @@ add_record (GnomePilotConduitSyncAbs *conduit,
return -1;
}
- ctxt->cards = g_list_append (ctxt->cards,
- e_book_get_card (ctxt->ebook, cons.id));
+ e_card_set_id (ecard, cons.id);
+ ctxt->cards = g_list_append (ctxt->cards, ecard);
g_free (cons.id);
e_pilot_map_insert (ctxt->map, remote->ID, ecard->id, FALSE);