The dispersion relation for de Broglie waves is examined sufficiently to remove a possible ambiguity in the de Broglie frequency. The motion of a heavy (guided) photon, which obeys the same dispersion relation, is then studied in a gravitational field, leading to the Einsteinian relation frequency shift in a gravitational field.