[gtk/wip/baedert/for-master: 88/97] pathbar: Avoid calling gtk_widget_destroy()
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 88/97] pathbar: Avoid calling gtk_widget_destroy()
- Date: Fri, 21 Feb 2020 12:22:47 +0000 (UTC)
commit 705b3c8663ec228ebe3e60a4ef08637b769823ea
Author: Timm Bäder <mail baedert org>
Date: Thu Feb 20 19:36:13 2020 +0100
pathbar: Avoid calling gtk_widget_destroy()
gtk/gtkpathbar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index e9477e349c..ba23450eac 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1360,7 +1360,7 @@ gtk_path_bar_set_file_finish (struct SetFileInfo *info,
ButtonData *button_data;
button_data = BUTTON_DATA (l->data);
- gtk_widget_destroy (button_data->button);
+ gtk_container_remove (GTK_CONTAINER (info->path_bar), button_data->button);
}
g_list_free (info->new_buttons);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]