[gtk+] filechooserwidget: Avoid a gtk_widget_destroy
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] filechooserwidget: Avoid a gtk_widget_destroy
- Date: Mon, 13 Mar 2017 14:39:22 +0000 (UTC)
commit 4d3b15e37cf4fda7a5dd747bd69fbe2d96fb1d6c
Author: Timm Bäder <mail baedert org>
Date: Tue Mar 7 18:11:26 2017 +0100
filechooserwidget: Avoid a gtk_widget_destroy
gtk/gtkfilechooserwidget.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index d49d247..292d50f 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]