I think it's twofold... I think you can be born predisposed to be attracted to the same sex, but I also believe it can be a learned behavior from incidents that happen early in life.
I think the majority of gay people are born that way, however.
And, FYI, it's "genes" not "jeans".