diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-07-26 06:33:13 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-07-26 06:33:13 +0800 |
commit | d80824e7862607721151174c4f2dae17b85d1238 (patch) | |
tree | 9991a8821754b38346fd5b5d3bc2f5b210aeabce /addressbook/conduit | |
parent | 38168a2e40c23292e6e9ac8472f06a754e7981e4 (diff) | |
download | gsoc2013-evolution-d80824e7862607721151174c4f2dae17b85d1238.tar.gz gsoc2013-evolution-d80824e7862607721151174c4f2dae17b85d1238.tar.zst gsoc2013-evolution-d80824e7862607721151174c4f2dae17b85d1238.zip |
use the user's Contact db. not toshok's.
2000-07-25 Chris Toshok <toshok@helixcode.com>
* conduit/address-conduit.c (start_address_server): use the user's
Contact db. not toshok's.
svn path=/trunk/; revision=4337
Diffstat (limited to 'addressbook/conduit')
-rw-r--r-- | addressbook/conduit/address-conduit.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c index d6168abb90..21d89645d8 100644 --- a/addressbook/conduit/address-conduit.c +++ b/addressbook/conduit/address-conduit.c @@ -145,18 +145,26 @@ static int start_address_server (GnomePilotConduitStandardAbs *conduit, AddressbookConduitContext *ctxt) { - + gchar *uri, *path; + g_return_val_if_fail(conduit!=NULL,-2); g_return_val_if_fail(ctxt!=NULL,-2); ctxt->ebook = e_book_new (); - e_book_load_uri (ctxt->ebook, "file:/home/toshok/evolution/local/Contacts", book_open_cb, ctxt); + path = g_concat_dir_and_file (g_get_home_dir (), + "evolution/local/Contacts"); + uri = g_strdup_printf ("file:%s", path); + g_free (path); + + e_book_load_uri (ctxt->ebook, uri, book_open_cb, ctxt); /* run a sub event loop to turn ebook's async loading into a synchronous call */ gtk_main (); + g_free (uri); + if (ctxt->address_load_success) return 0; |