color: Remove deprecated functions and silence compiler warnings
The color calibration code called on GdkScreen API, an API that is now mostly deprecated in favour of GdkDisplay and GdkMonitor.
This commit updates that, and also removes a compiler warning about different enum types.