Changed the URI to load to.

2000-07-27  Christopher James Lahey  <clahey@helixcode.com>

	* backend/ebook/load-pine-addressbook.c: Changed the URI to load
	to.

svn path=/trunk/; revision=4381
This commit is contained in:
Christopher James Lahey
2000-07-27 08:46:50 +00:00
committed by Chris Lahey
parent 9d1dafcffb
commit 8fffa05e0f
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-07-27 Christopher James Lahey <clahey@helixcode.com>
* backend/ebook/load-pine-addressbook.c: Changed the URI to load
to.
2000-07-26 Christopher James Lahey <clahey@helixcode.com>
* gui/minicard/e-minicard-widget-test.c: Fixed a warning.

View File

@ -92,6 +92,7 @@ static guint
ebook_create (void)
{
EBook *book;
gchar *path, *uri;
book = e_book_new ();
@ -103,9 +104,15 @@ ebook_create (void)
}
if (! e_book_load_uri (book, "file:/tmp/test.db", book_open_cb, NULL)) {
path = g_concat_dir_and_file (g_get_home_dir (),
"evolution/local/Contacts/addressbook.db");
uri = g_strdup_printf ("file://%s", path);
g_free (path);
if (! e_book_load_uri (book, uri, book_open_cb, NULL)) {
printf ("error calling load_uri!\n");
}
g_free(uri);
return FALSE;