aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-03-04 06:10:44 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-03-04 06:10:44 +0800
commit8ddb619ad083a9a7d2ce9e2de72554607bbfbf01 (patch)
treeeee45a24038d486634e27a65c7f18c9577531938 /addressbook/gui
parent94573f49e0ba31d451bf1d3e63e2b353890f1fdd (diff)
downloadgsoc2013-evolution-8ddb619ad083a9a7d2ce9e2de72554607bbfbf01.tar
gsoc2013-evolution-8ddb619ad083a9a7d2ce9e2de72554607bbfbf01.tar.gz
gsoc2013-evolution-8ddb619ad083a9a7d2ce9e2de72554607bbfbf01.tar.bz2
gsoc2013-evolution-8ddb619ad083a9a7d2ce9e2de72554607bbfbf01.tar.lz
gsoc2013-evolution-8ddb619ad083a9a7d2ce9e2de72554607bbfbf01.tar.xz
gsoc2013-evolution-8ddb619ad083a9a7d2ce9e2de72554607bbfbf01.tar.zst
gsoc2013-evolution-8ddb619ad083a9a7d2ce9e2de72554607bbfbf01.zip
(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
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/select-names/e-select-names.c4
1 files changed, 2 insertions, 2 deletions
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;
}