Gluon propagator and quark confinement