[gtk/wip/baedert/for-master: 7/11] 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: 7/11] pathbar: Avoid calling gtk_widget_destroy()
- Date: Fri, 21 Feb 2020 08:15:16 +0000 (UTC)
commit d8c17c11e304e97f2cba0a118e646a482d0b448b
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 152efa625b..1ee15a8948 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]