aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-06-01 07:05:41 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-06-01 07:05:41 +0800
commitbe88a44705a7decc5cf3fb87704f1d6608fea857 (patch)
tree3838b802677649ef4b231c99683c1b34ee8277f7 /addressbook/gui/component
parente86a28e484c9adc8a755f2df7ed9f682e47c32d5 (diff)
downloadgsoc2013-evolution-be88a44705a7decc5cf3fb87704f1d6608fea857.tar
gsoc2013-evolution-be88a44705a7decc5cf3fb87704f1d6608fea857.tar.gz
gsoc2013-evolution-be88a44705a7decc5cf3fb87704f1d6608fea857.tar.bz2
gsoc2013-evolution-be88a44705a7decc5cf3fb87704f1d6608fea857.tar.lz
gsoc2013-evolution-be88a44705a7decc5cf3fb87704f1d6608fea857.tar.xz
gsoc2013-evolution-be88a44705a7decc5cf3fb87704f1d6608fea857.tar.zst
gsoc2013-evolution-be88a44705a7decc5cf3fb87704f1d6608fea857.zip
Added fields for the GalViewMenus and GalViewCollection; we need to keep
2001-05-31 Federico Mena Quintero <federico@ximian.com> * gui/widgets/e-addressbook-view.h (EAddressbookView): Added fields for the GalViewMenus and GalViewCollection; we need to keep them around while the component is active. * gui/widgets/e-addressbook-view.c (e_addressbook_view_setup_menus): Plug leak; unref the spec. Unref the factories. Do not unref the collection, since we need it for the signal emission (okay, so the views object adds a reference to it, but if we are interested in it we should keep a reference anyways). (e_addressbook_view_setup_menus): Create the collection and views on the EAddressbookView's fields so that we can keep them around. (e_addressbook_view_discard_menus): New function; gets rid of the collection and views objects. * gui/component/addressbook.c (control_activate_cb): Call e_addressbook_view_discard_menus(). svn path=/trunk/; revision=10074
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index c572bfc097..a3df7a300e 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -349,8 +349,10 @@ control_activate_cb (BonoboControl *control,
if (activate)
control_activate (control, uic, view);
- else
+ else {
bonobo_ui_component_unset_container (uic);
+ e_addressbook_view_discard_menus (view->view);
+ }
}
static void