It's gotten a little Wild West-y in the past few years, and honestly, Citibank has been willing to let me spend half my income on mortgage payments.
For comfort though, I'd recommend 35%.
For those of you who like to crunch your own numbers, here's a worksheet from an independent government site.