[ fixes bug #41779 ] we don't need to call gtk_widget_destroy on the old

2003-04-28  Chris Toshok  <toshok@ximian.com>

	[ 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
This commit is contained in:
Chris Toshok
2003-04-28 08:36:51 +00:00
committed by Chris Toshok
parent bccf5a543b
commit a3a311f702
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2003-04-28 Chris Toshok <toshok@ximian.com>
[ 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.
2003-04-23 Chris Toshok <toshok@ximian.com>
[ fixes bug #37351 ]

View File

@ -42,6 +42,7 @@
#include <addressbook/gui/contact-editor/e-contact-quick-add.h>
#include <addressbook/gui/widgets/e-minicard-widget.h>
#include <addressbook/gui/widgets/e-addressbook-util.h>
#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);
}