From d408223fe719c64e24fbcf01b8b899f5e72ab2c0 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Tue, 30 Oct 2001 22:55:08 +0000 Subject: Force the select names dialog to be destroyed. This is a hack to fix bug 2001-10-30 Jon Trowbridge * gui/component/select-names/e-select-names-bonobo.c (impl_destroy): Force the select names dialog to be destroyed. This is a hack to fix bug #14002 -- I'll clean up the refcounting issues post-freeze. At least now it won't crash. svn path=/trunk/; revision=14495 --- addressbook/gui/component/select-names/e-select-names-bonobo.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/select-names/e-select-names-bonobo.c b/addressbook/gui/component/select-names/e-select-names-bonobo.c index 8952b0d0e3..7f33d335b7 100644 --- a/addressbook/gui/component/select-names/e-select-names-bonobo.c +++ b/addressbook/gui/component/select-names/e-select-names-bonobo.c @@ -357,6 +357,13 @@ impl_destroy (GtkObject *object) select_names = E_SELECT_NAMES_BONOBO (object); priv = select_names->priv; + /* FIXME: a hack to work around some ref counting brokenness that + I'll fix later. */ + if (priv->manager->names) { + gtk_widget_destroy (GTK_WIDGET (priv->manager->names)); + priv->manager->names = NULL; + } + gtk_object_unref (GTK_OBJECT (priv->manager)); g_free (priv); -- cgit v1.2.3