Ref the BonoboUIComponent that we are holding. (gvm_destroy): Unref our

2001-10-24  Jon Trowbridge  <trow@ximian.com>

	* menus/gal-view-menus.c (gal_view_menus_apply): Ref the
	BonoboUIComponent that we are holding.
	(gvm_destroy): Unref our BonoboUIComponent.

svn path=/trunk/; revision=13994
This commit is contained in:
Jon Trowbridge
2001-10-24 21:23:46 +00:00
committed by Jon Trowbridge
parent 66c5805817
commit c10ff3cbd7
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-10-24 Jon Trowbridge <trow@ximian.com>
* menus/gal-view-menus.c (gal_view_menus_apply): Ref the
BonoboUIComponent that we are holding.
(gvm_destroy): Unref our BonoboUIComponent.
2001-10-21 Christopher James Lahey <clahey@ximian.com>
* menus/gal-view-menus.c: Make this not be a radio button, but

View File

@ -87,6 +87,12 @@ gvm_destroy (GtkObject *object)
free_verbs(gvm);
remove_xml(gvm);
if (gvm->priv->component) {
bonobo_object_unref (BONOBO_OBJECT (gvm->priv->component));
gvm->priv->component = NULL;
}
g_free(gvm->priv);
gvm->priv = NULL;
@ -300,6 +306,12 @@ gal_view_menus_apply (GalViewMenus *gvm,
BonoboUIComponent *component,
CORBA_Environment *ev)
{
if (component)
bonobo_object_ref (BONOBO_OBJECT (component));
if (gvm->priv->component)
bonobo_object_unref (BONOBO_OBJECT (gvm->priv->component));
gvm->priv->component = component;
build_stuff (gvm, ev);