aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-new-dialog.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-03-18 06:31:22 +0800
committerHans Petter <hansp@src.gnome.org>2003-03-18 06:31:22 +0800
commit8bc5772286f17dcb7df17ce01ed7b32f83dae454 (patch)
tree4e60c967d2d42b8d8354953915cb297a2aa43fe5 /widgets/menus/gal-view-new-dialog.c
parent8febd0e5ac1d1b41e36e94c60fd718a2638626ca (diff)
downloadgsoc2013-evolution-8bc5772286f17dcb7df17ce01ed7b32f83dae454.tar
gsoc2013-evolution-8bc5772286f17dcb7df17ce01ed7b32f83dae454.tar.gz
gsoc2013-evolution-8bc5772286f17dcb7df17ce01ed7b32f83dae454.tar.bz2
gsoc2013-evolution-8bc5772286f17dcb7df17ce01ed7b32f83dae454.tar.lz
gsoc2013-evolution-8bc5772286f17dcb7df17ce01ed7b32f83dae454.tar.xz
gsoc2013-evolution-8bc5772286f17dcb7df17ce01ed7b32f83dae454.tar.zst
gsoc2013-evolution-8bc5772286f17dcb7df17ce01ed7b32f83dae454.zip
Instead of using gtk_widget_unparent(), remove the widget from the
2003-03-17 Hans Petter Jansson <hpj@ximian.com> * gal-define-views-dialog.c (gal_define_views_dialog_init): Instead of using gtk_widget_unparent(), remove the widget from the container using gtk_container_remove(). This fixes crashers where the dialog is being used. * gal-view-instance-save-as-dialog.c (gal_view_instance_save_as_dialog_init): Ditto. * gal-view-new-dialog.c (gal_view_new_dialog_init): Ditto. svn path=/trunk/; revision=20324
Diffstat (limited to 'widgets/menus/gal-view-new-dialog.c')
-rw-r--r--widgets/menus/gal-view-new-dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-new-dialog.c b/widgets/menus/gal-view-new-dialog.c
index bb81afdd4d..b529959178 100644
--- a/widgets/menus/gal-view-new-dialog.c
+++ b/widgets/menus/gal-view-new-dialog.c
@@ -94,7 +94,7 @@ gal_view_new_dialog_init (GalViewNewDialog *dialog)
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(dialog)->vbox), widget, TRUE, TRUE, 0);
gtk_widget_unref(widget);