jamespt2042710_08_X17230WM.jpgAmidst announcing his split from fiancee Kat Von D, Jesse James did get some good news.

On Monday, James, 42, was awarded sole custody of his daughter Sunny, 7, after a long court battle with his ex, Janine Lindemulder.

James got the news in an Orange County, Calif., courthouse. He had been fighting Lindemulder on the issue for years, with her often making negative comments about James (and even ex Sandra Bullock) to the press.

And Lindemulder has been given stipulations. If she relocates to Texas to be near James and Sunny, she'll be ordered to inpatient rehab. If she remains in California, she'll get monitored visitation of her daughter.

James announced his split from Von D late Monday evening. See what she Tweeted after the announcement after the jump.