Her surprise appointment as Europe minister in June was seen as an emergency measure after Caroline Flint , who held the post , walked out , accusing Mr Brown of using women ministers as " window dressing . "