This function results in double deleting widgets that are managed, apparently harmless in Gtk3 but fatal in Gtk4.