About the motion of nonhomogeneous ideal incompressible fluids