When I was very little, he was on My Three Sons (1960-1972). I paid most attention to the college-age son Robbie Douglas (Don Grady, left), who like boys, but sometimes I noticed that his pipe-smoking, newspaper-reading Dad (Fred MacMurray) was married to a man.
Apparently together a long time (seen here in 1935).
Then in a series of Disney movies: The Shaggy Dog (1959), The Absent-Minded Professor (1961), Bon Voyage (1962), Son of Flubber (1963), playing a scatterbrained professor or bumbling dad. He always had a wife, but the movie mostly involved bonding with gay actor Tommy Kirk, who played his son or favorite student.
Big Valley), but also has a gay-subtext buddy-bond with his boss, Barton Keyes (played by some famous gangster guy of the 1930s).
Before that Fred MacMurry was an all-round athlete and 1930s heartthrob who posed semi-nude for his fans.