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/ChangeLog | 7 +++++++ addressbook/gui/component/select-names/e-select-names-bonobo.c | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 97466521b6..920fe57c53 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +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. + 2001-10-30 JP Rosevear * conduit/address-conduit.c (ecard_from_remote_record): make sure 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