diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-10-25 05:23:46 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-10-25 05:23:46 +0800 |
commit | c10ff3cbd7a7ae2b8fd7db8a73737f85c09f0d89 (patch) | |
tree | 31f7044484890943f73eb03a0547f8a45621ee3b /widgets | |
parent | 66c5805817699db551d54912d1c5f6f6732fd2c3 (diff) | |
download | gsoc2013-evolution-c10ff3cbd7a7ae2b8fd7db8a73737f85c09f0d89.tar gsoc2013-evolution-c10ff3cbd7a7ae2b8fd7db8a73737f85c09f0d89.tar.gz gsoc2013-evolution-c10ff3cbd7a7ae2b8fd7db8a73737f85c09f0d89.tar.bz2 gsoc2013-evolution-c10ff3cbd7a7ae2b8fd7db8a73737f85c09f0d89.tar.lz gsoc2013-evolution-c10ff3cbd7a7ae2b8fd7db8a73737f85c09f0d89.tar.xz gsoc2013-evolution-c10ff3cbd7a7ae2b8fd7db8a73737f85c09f0d89.tar.zst gsoc2013-evolution-c10ff3cbd7a7ae2b8fd7db8a73737f85c09f0d89.zip |
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
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/menus/gal-view-menus.c | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog index 73fcbf355e..bc77dbb576 100644 --- a/widgets/ChangeLog +++ b/widgets/ChangeLog @@ -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 diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c index 353b3560ed..2b2677a5bd 100644 --- a/widgets/menus/gal-view-menus.c +++ b/widgets/menus/gal-view-menus.c @@ -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); |