stackswitcher: Avoid calling gtk_widget_destroy()

This commit is contained in:
Timm Bäder 2020-02-21 09:08:05 +01:00
parent df3b88483d
commit dbd1180ce4

View File

@ -136,7 +136,7 @@ rebuild_child (GtkWidget *self,
button_child = gtk_bin_get_child (GTK_BIN (self));
if (button_child != NULL)
gtk_widget_destroy (button_child);
gtk_container_remove (GTK_CONTAINER (self), button_child);
button_child = NULL;