diff options
author | Chris Toshok <toshok@src.gnome.org> | 2000-05-01 08:14:39 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-05-01 08:14:39 +0800 |
commit | 702ede3d4dc1a9046264e7a5ac31da3b1d25b942 (patch) | |
tree | f36eb83b926c57f6169ba5988f54af023ce7533e /addressbook/backend/ebook | |
parent | 90dd8d4336078364aaaebbf709fa52b9f707f57f (diff) | |
download | gsoc2013-evolution-702ede3d4dc1a9046264e7a5ac31da3b1d25b942.tar.gz gsoc2013-evolution-702ede3d4dc1a9046264e7a5ac31da3b1d25b942.tar.zst gsoc2013-evolution-702ede3d4dc1a9046264e7a5ac31da3b1d25b942.zip |
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
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r-- | addressbook/backend/ebook/e-book.c | 24 |
1 files changed, 12 insertions, 12 deletions
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 @@ -348,6 +348,18 @@ e_book_load_uri (EBook *book, } /* + * 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. */ CORBA_exception_init (&ev); @@ -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; } |