 He began a lengthy lawsuit which resulted in Stuart, Lord Darnley retaining the earldom but Gleneagles was compensated with one quarter of the lands.In 1505, Sir James Haldane, fourth of Gleneagles was appointed Governor of Dunbar Castle.His son, Sir John Haldane, fifth of Gleneagles was responsible for erecting lands in Lennox and Perthshire that were not already part of Gleneagles into the barony of Haldane.