I am very sorry for your loss.

I think she was EXTREMELY insensitive. The only "explanation" is as others have said, Maybe she just didn't know what to say. I know I never know what to say in situations like that, but I would have just hugges you, told you I'm sorry, and that I'm here for anything you need. I can't imagine why anyone would start complaining about their ex at a time like that.