diff options
author | Chris Toshok <toshok@ximian.com> | 2004-05-20 09:16:56 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-05-20 09:16:56 +0800 |
commit | afb051139213e937b7fe160acc185c194a3edf16 (patch) | |
tree | daaef5f597081bab76bac587c442a6fe44d358f5 /calendar/gui | |
parent | 47c3838fee257737f17aae3696a8dda177af7a35 (diff) | |
download | gsoc2013-evolution-afb051139213e937b7fe160acc185c194a3edf16.tar.gz gsoc2013-evolution-afb051139213e937b7fe160acc185c194a3edf16.tar.zst gsoc2013-evolution-afb051139213e937b7fe160acc185c194a3edf16.zip |
use the new e_book_new_* and e_book_open apis.
2004-05-19 Chris Toshok <toshok@ximian.com>
* gui/e-meeting-store.c (start_addressbook_server): use the new
e_book_new_* and e_book_open apis.
* gui/e-meeting-list-view.c (start_addressbook_server): use the
new e_book_new_* and e_book_open apis.
svn path=/trunk/; revision=26000
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-meeting-list-view.c | 5 | ||||
-rw-r--r-- | calendar/gui/e-meeting-store.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c index ac3b3f2697..85830a2071 100644 --- a/calendar/gui/e-meeting-list-view.c +++ b/calendar/gui/e-meeting-list-view.c @@ -77,8 +77,9 @@ start_addressbook_server (EMeetingListView *view) { GError *error = NULL; - view->priv->ebook = e_book_new (); - if (!e_book_load_local_addressbook (view->priv->ebook, &error)) { + view->priv->ebook = e_book_new_system_addressbook (&error); + if (!view->priv->ebook + || !e_book_open (view->priv->ebook, FALSE, &error)) { g_warning ("start_addressbook_server(): %s", error->message); g_error_free (error); diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c index bd89a46f83..9aba639232 100644 --- a/calendar/gui/e-meeting-store.c +++ b/calendar/gui/e-meeting-store.c @@ -80,8 +80,8 @@ static GObjectClass *parent_class = NULL; static void start_addressbook_server (EMeetingStore *store) { - store->priv->ebook = e_book_new (); - e_book_load_local_addressbook (store->priv->ebook, NULL); + store->priv->ebook = e_book_new_system_addressbook (NULL); + e_book_open (store->priv->ebook, FALSE, NULL); } static icalparameter_cutype |