From 0203f5de7608f34c6510948b36f522c4c3a87fef Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 14 May 2003 18:44:27 +0000 Subject: clear the view (book_open_cb): track the book in the view, don't unref the 2003-05-14 JP Rosevear * gui/component/addressbook.c (addressbook_view_unref): clear the view (book_open_cb): track the book in the view, don't unref the book (set_prop): set the book (retrieve_shell_view_interface_from_control): get the shell view every time (set_folder_bar_label): release and unref the shell view * gui/component/addressbook-storage.h: add proto * gui/component/addressbook-storage.c (addressbook_storage_cleanup): unref the storage * gui/component/addressbook-component.c (owner_unset_cb): clean up storage * backend/ebook/e-book.c (e_book_load_uri): track the listener signal (e_book_dispose): unref the listener and disconnect the signal svn path=/trunk/; revision=21179 --- addressbook/gui/component/addressbook-component.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook/gui/component/addressbook-component.c') diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index b1db690d2a..04a1e3ebe7 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -390,6 +390,8 @@ owner_unset_cb (EvolutionShellComponent *shell_component, if (owner_count == 0) global_shell_client = NULL; + + addressbook_storage_cleanup (); } /* FIXME We should perhaps take the time to figure out if the book is editable. */ -- cgit v1.2.3