[gtk/wip/baedert/for-master: 64/86] pathbar: Avoid calling gtk_widget_destroy()



commit 9f930a4b1c8d1daad51ffdb06341e36954e4bfbb
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]