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:

committed by
Jon Trowbridge

parent
66c5805817
commit
c10ff3cbd7
@ -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
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user