Edward A. Falk said:
That said, let me warn you that X toolkits are a nightmare to write.
Once you start dealing with fonts, keyboard traversal, other input
issues, and so forth, you find yourself being sucked into a whirlpool.
There's a reason why all the X toolkits basically suck -- they're really
really hard to get right.
But it's also a lot of fun to do. Enjoy.
Any chance of a screenshot of yours?
Let me know if you want a copy of the one I wrote in 1996 to steal
code from.
Screenshot:
http://imgur.com/EiqIDEb
It needs work, of course.
I've just put the latest version on my website.
It's been walled, so it now compiles cleanly with all warnings set, which
was the main comment people made. I've also put a wrapper round the memory
allocation, so it now exits on out-of-memory conditions instead of
segfaulting.
I'll roll it out to sourceforge shortly.
I'd certainly like to look at your project. As you said, it's not obvious
what to put in and what to leave out of an X toolkit. There's not much point
just providing a thin layer to wrap X calls. On the other hand, a fully-
fledged high level toolkit is hard to get right.