From 702ede3d4dc1a9046264e7a5ac31da3b1d25b942 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 1 May 2000 00:14:39 +0000 Subject: create the book listener here, since it's destroyed in unload_uri. * backend/ebook/e-book.c (e_book_load_uri): create the book listener here, since it's destroyed in unload_uri. (e_book_construct): remove the book listener construction here. svn path=/trunk/; revision=2699 --- addressbook/backend/ebook/e-book.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'addressbook/backend/ebook') diff --git a/addressbook/backend/ebook/e-book.c b/addressbook/backend/ebook/e-book.c index e3301233a6..4acd15cba0 100644 --- a/addressbook/backend/ebook/e-book.c +++ b/addressbook/backend/ebook/e-book.c @@ -347,6 +347,18 @@ e_book_load_uri (EBook *book, return FALSE; } + /* + * Create our local BookListener interface. + */ + book->priv->listener = e_book_listener_new (); + if (book->priv->listener == NULL) { + g_warning ("e_book_load_uri: Could not create EBookListener!\n"); + return FALSE; + } + + gtk_signal_connect (GTK_OBJECT (book->priv->listener), "responses_queued", + e_book_check_listener_queue, book); + /* * Load the addressbook into the PAS. */ @@ -447,18 +459,6 @@ e_book_construct (EBook *book) return FALSE; } - /* - * Create our local BookListener interface. - */ - book->priv->listener = e_book_listener_new (); - if (book->priv->listener == NULL) { - g_warning ("e_book_construct: Could not create EBookListener!\n"); - return FALSE; - } - - gtk_signal_connect (GTK_OBJECT (book->priv->listener), "responses_queued", - e_book_check_listener_queue, book); - return TRUE; } -- cgit v1.2.3