preferences window it and cairo surface