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



commit 5fb33b74454c5b13cf2bcdd66896ba47dda32133
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]