From 8ddb619ad083a9a7d2ce9e2de72554607bbfbf01 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 3 Mar 2003 22:10:44 +0000 Subject: (e_select_names_init): Instead of using gtk_widget_unparent(), remove the widget from the container using gtk_container_remove(). This fixes a bunch of crashers in all the places using the ESelectNames widget/control. svn path=/trunk/; revision=20127 --- addressbook/gui/component/select-names/e-select-names.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/component') diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index b8d3ec77cc..aae358905a 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -480,7 +480,7 @@ e_select_names_init (ESelectNames *e_select_names) return; } gtk_widget_ref(widget); - gtk_widget_unparent(widget); + gtk_container_remove(GTK_CONTAINER(widget->parent), widget); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(e_select_names)->vbox), widget, TRUE, TRUE, 0); gtk_widget_unref(widget); @@ -625,7 +625,7 @@ e_select_names_dispose (GObject *object) GtkWidget* e_select_names_new (void) { - GtkWidget *widget = g_object_new (E_TYPE_SELECT_NAMES, NULL); + GtkWidget *widget = g_object_new (E_TYPE_SELECT_NAMES, "modal", FALSE, NULL); return widget; } -- cgit v1.2.3