From what I know, the most often assumed meaning came from its use in the Maltese Falcon, because the kid Sam was taunting with it so often was Gutman's gunman. Though there's also the Big Sleep, where the kid with the gun was in fact a homosexual (more obvious in the book than the movie, of course).
Either way, it's mostly Hammett and Chandler's fault.