Look at other previously male dominated positions like doctors and law where you now in Sweden have more women graduating those fields than men. Something changed there. I doubt software development has been more hostile and conservative than for example law.
The thing is that women are studying at university at a larger degree than men in Sweden but they are not selecting STEM fields, especially not computer science.
Maybe it will change with role models, culture and different initiatives but I suspect that most young women right now think it is a boring as fuck career (at least those I talk to).
It would be like someone asking me if I would like to study to teach kindergarten. Maybe I as a male have been conditioned not to see that as an option and maybe many more would choose that career if we were raised differently but for me it just sounds like something I would really really not like. I respect the work but for me taking care of tons of kids all day sounds incredibly boring and rough. The idea that there is discrimination (which there is and some men suffer from) is not near my mind.
Most women I talk to express similar thoughts about software development.