Martin, Sorry for not getting back to you sooner. I've already tidied up your patch following john's comments. I've also fixed up a few compile errors that were introduced by cvs changes since you posted it. Once Lars is done making the 1.3.0 release I'll commit it.
Thanks again for your help. Once 1.3.0 is out we'll be able to start doing some of the interesting work, specifically the WorkArea, Painter, Screen, KeySym etc. etc. etc. Cheers Koz.