diff options
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/addressbook.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 883982d500..520ffab568 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -532,10 +532,8 @@ set_prop (BonoboPropertyBag *bag, uri_data = g_strdup_printf("file://%s", file_name); g_free(file_name); } - if (! e_book_load_uri (book, uri_data, book_open_cb, view)) + if (! e_book_load_uri (view->book, uri_data, book_open_cb, view)) printf ("error calling load_uri!\n"); - else - view->book = book; g_free(uri_data); @@ -781,6 +779,9 @@ addressbook_factory (BonoboGenericFactory *Factory, void *closure) gtk_widget_show_all( view->vbox ); + /* create the view's ebook */ + view->book = e_book_new (); + view->properties = bonobo_property_bag_new (get_prop, set_prop, view); bonobo_property_bag_add ( |