Jason Segel and Michelle Williams
02/27/2013 at 09:30 AM EST
The fairytale is over for Michelle Williams
and Jason Segel
The Oz the Great and Powerful star
and the How I Met Your Mother
actor split a few weeks ago after dating for a year
, a source confirms to PEOPLE.
The long distance – Williams, 32, is based in New York City, while Segel, 33, primarily resides in Los Angeles – was the reason behind the breakup, the source adds.
Earlier in the month, the actress told In Style
that she cherished public support
of her relationship.
"If people are happy about it that makes me feel good ... Any kind sentiment that the world can feed back, well, I won't turn it down," she explained.
The couple, who were often seen out and about
with 7-year-old Matilda, Williams' daughter with
the late Heath Ledger
, began staying together in a Brooklyn apartment
Reps for the actors have not commented.