Bert,
Here is a snapshot of a partially implemented HostWindowPlugin for X11. I have not looked at this in quite a while, but when I last worked on it a number of things were functional (including ioSetTitleOfWindow(), for whatever that may be worth).
Some of the support code is crudely hacked out of Ian's original work, and I would anticipate some effort to make this right. In particular, it was not clear to me how the X event dispatching should ultimately work, and whether the host windows should behave analogously to Squeak projects or if they were intended to be more like passive display surfaces.
I could probably be motivated to pick this up again and/or to help you with it, but in any case feel free to use this in any way you like. MIT license of course, and the plagiarized parts should be MIT because I stole them all from Ian ;)
Dave
On Fri, Jul 18, 2008 at 06:53:29PM -0700, Bert Freudenberg wrote:
Am 05.02.2008 um 02:11 schrieb Bert Freudenberg:
On Feb 5, 2008, at 8:15 , Andreas Raab wrote:
ioGetWindowLabel/ioSetWindowLabel
These are support functions that are currently not implemented in the Unix/Mac VMs (we use them to get/set the main window title directly). Here is how to stub them (best done in sqUnixMain.c):
char* ioGetWindowLabel(void) {return "";} sqInt ioSetWindowLabelOfSize(void* lbl, sqInt size) {return 0;}
This should do the trick.
Actually, I need to implement these for X11 anyway. Expect this to soon be supported in the OLPC branch. Unless someone beats me to it of course :)
Hmm, where could I find the code calling this? I'd need both the slang and image-side code.
- Bert -