aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-storage.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-05-15 02:44:27 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-05-15 02:44:27 +0800
commit0203f5de7608f34c6510948b36f522c4c3a87fef (patch)
treead2cb3601cc04bff1993794236b3410b4d3d2040 /addressbook/gui/component/addressbook-storage.c
parentd49d8a2f15034c24cc67ac3922570d95643c39a5 (diff)
downloadgsoc2013-evolution-0203f5de7608f34c6510948b36f522c4c3a87fef.tar
gsoc2013-evolution-0203f5de7608f34c6510948b36f522c4c3a87fef.tar.gz
gsoc2013-evolution-0203f5de7608f34c6510948b36f522c4c3a87fef.tar.bz2
gsoc2013-evolution-0203f5de7608f34c6510948b36f522c4c3a87fef.tar.lz
gsoc2013-evolution-0203f5de7608f34c6510948b36f522c4c3a87fef.tar.xz
gsoc2013-evolution-0203f5de7608f34c6510948b36f522c4c3a87fef.tar.zst
gsoc2013-evolution-0203f5de7608f34c6510948b36f522c4c3a87fef.zip
clear the view (book_open_cb): track the book in the view, don't unref the
2003-05-14 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'addressbook/gui/component/addressbook-storage.c')
-rw-r--r--addressbook/gui/component/addressbook-storage.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook-storage.c b/addressbook/gui/component/addressbook-storage.c
index 9b73b93b54..6f087b6c7e 100644
--- a/addressbook/gui/component/addressbook-storage.c
+++ b/addressbook/gui/component/addressbook-storage.c
@@ -107,6 +107,15 @@ addressbook_storage_setup (EvolutionShellComponent *shell_component,
#endif
}
+void
+addressbook_storage_cleanup (void)
+{
+ if (storage != NULL) {
+ bonobo_object_unref (storage);
+ storage = NULL;
+ }
+}
+
#ifdef HAVE_LDAP
static void
notify_listener (const Bonobo_Listener listener,