Totally positive functions and Gabor frames over rational lattices