1's complement of a number using logic gates
Just invert all the bits. That's all 1's complement is.

In fact the circuit you show, assuming you replicated it for each bit, gives you the 1's complement. An XOR gate with an input tied high is basically just an inverter.