Matt Bomer and Simon Halls are parents to three sons, an 8-year-old and 6-year-old twins. Reuters

Actor Matt Bomer shared a major secret during his interview for the May issue of Details magazine.

Bomer, 36, revealed that he quietly wed his partner, publicist Simon Halls, in 2011, just one year before he publicly came out at the Desert AIDS Project’s Steve Chase Humanitarian Awards. During his acceptance speech at the ceremony, where he received the New Generation Arts & Activism Award, Bomer gave a special shout-out to his partner and the couple’s three sons, the New York Daily News reported.

“I’d really especially like to thank my beautiful family: Simon, Kit, Walker, Henry. Thank you for teaching me what unconditional love is. You will always be my proudest accomplishment. God bless you,” Bomer said at the ceremony.

In the interview, Bomer also talked about his role in the upcoming Ryan Murphy film “The Normal Heart.” In the movie, Bomer plays a gay man dying of AIDS in the 1980s. “I just wanted to be involved with the project in some capacity. I didn't care what my part was,” he said. He added that if not for individuals like the film’s writer, Larry Kramer, “I wouldn't have a lot of the rights I have today.”

Bomer said he lost 40 pounds for the film, and stopped weighing himself after he lost 35 pounds. “I thought the number wasn't the important thing to focus on. This wasn't 'The Biggest Loser,'” he said.

“It's rare that you get to be a part of something that, hopefully, has some significance socially or historically,” Bomer said. “And then to have a role that changes you? I think that's the best you could hope for in this profession, and that was certainly the case here. I don't think I'll ever be the same as I was when I started the job.”