From a3a311f7029f00d963364d66ad887b3f7793b235 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 28 Apr 2003 08:36:51 +0000 Subject: [ fixes bug #41779 ] we don't need to call gtk_widget_destroy on the old 2003-04-28 Chris Toshok [ fixes bug #41779 ] * gui/component/e-address-popup.c (mini_wizard_container_add): we don't need to call gtk_widget_destroy on the old child, since gtk_container_remove will unref it for us. svn path=/trunk/; revision=20977 --- addressbook/gui/component/e-address-popup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook/gui/component/e-address-popup.c') diff --git a/addressbook/gui/component/e-address-popup.c b/addressbook/gui/component/e-address-popup.c index b920fbf7ed..8d3adb6446 100644 --- a/addressbook/gui/component/e-address-popup.c +++ b/addressbook/gui/component/e-address-popup.c @@ -42,6 +42,7 @@ #include #include #include +#include "e-util/e-gui-utils.h" /* * Some general scaffolding for our widgets. Think of this as a really, really @@ -73,7 +74,6 @@ mini_wizard_container_add (MiniWizard *wiz, GtkWidget *w) GtkWidget *oldw = (GtkWidget *) iter->data; iter = g_list_next (iter); gtk_container_remove (GTK_CONTAINER (wiz->vbox), oldw); - gtk_widget_destroy (oldw); } gtk_container_add (GTK_CONTAINER (wiz->vbox), w); } -- cgit v1.2.3