diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-06-02 07:28:13 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-06-02 07:28:13 +0800 |
commit | 06ebf6a67ec10e399ad041f666deb497924803cd (patch) | |
tree | 3cd99ba59389d6ef73fb0e318982fa22dad3ff6f /mail/folder-browser.c | |
parent | 338203f38e6841318c76dd6d330e223489e8e5ad (diff) | |
download | gsoc2013-evolution-06ebf6a67ec10e399ad041f666deb497924803cd.tar gsoc2013-evolution-06ebf6a67ec10e399ad041f666deb497924803cd.tar.gz gsoc2013-evolution-06ebf6a67ec10e399ad041f666deb497924803cd.tar.bz2 gsoc2013-evolution-06ebf6a67ec10e399ad041f666deb497924803cd.tar.lz gsoc2013-evolution-06ebf6a67ec10e399ad041f666deb497924803cd.tar.xz gsoc2013-evolution-06ebf6a67ec10e399ad041f666deb497924803cd.tar.zst gsoc2013-evolution-06ebf6a67ec10e399ad041f666deb497924803cd.zip |
Added fields for the GalViewMenus and GalViewCollection, since we need to
2001-06-01 Federico Mena Quintero <federico@ximian.com>
* folder-browser.h (FolderBrowser): Added fields for the
GalViewMenus and GalViewCollection, since we need to keep them
around while the component is active.
* folder-browser-factory.c (folder_browser_setup_view_menus): Plug
leaks; unref the spec and factory. Set the view collection and
the view menus on the FolderBrowser object.
(folder_browser_discard_view_menus): New function.
(control_deactivate): Discard the menus.
* folder-browser.c (folder_browser_destroy): Destroy the view
collection and the view menus.
svn path=/trunk/; revision=10086
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 81c27f450f..e29f406a67 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -108,6 +108,16 @@ folder_browser_destroy (GtkObject *object) CORBA_exception_free (&ev); + if (folder_browser->view_collection) { + gtk_object_unref (GTK_OBJECT (folder_browser->view_collection)); + folder_browser->view_collection = NULL; + } + + if (folder_browser->view_menus) { + gtk_object_unref (GTK_OBJECT (folder_browser->view_menus)); + folder_browser->view_menus = NULL; + } + folder_browser_parent_class->destroy (object); } @@ -1152,6 +1162,9 @@ my_folder_browser_init (GtkObject *object) { FolderBrowser *fb = FOLDER_BROWSER (object); + fb->view_collection = NULL; + fb->view_menus = NULL; + /* * Setup parent class fields. */ |