diff options
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 0ef7235111..1244e7ee38 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2003-03-03 Ettore Perazzoli <ettore@ximian.com> + + * gui/component/select-names/e-select-names.c + (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. + 2003-02-28 Dan Winship <danw@ximian.com> * gui/contact-editor/Makefile.am: Build libecontacteditor as an 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; } |