From 4d3b15e37cf4fda7a5dd747bd69fbe2d96fb1d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 7 Mar 2017 18:11:26 +0100 Subject: [PATCH] filechooserwidget: Avoid a gtk_widget_destroy --- gtk/gtkfilechooserwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index d49d247e5b..292d50f533 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -2743,7 +2743,8 @@ location_switch_to_path_bar (GtkFileChooserWidget *impl) if (priv->location_entry) { - gtk_widget_destroy (priv->location_entry); + gtk_container_remove (GTK_CONTAINER (gtk_widget_get_parent (priv->location_entry)), + priv->location_entry); priv->location_entry = NULL; }