Gtk2 coming to Squeak...
goran.krampe at bluefish.se
goran.krampe at bluefish.se
Fri Feb 6 08:41:17 UTC 2004
Hi guys!
"Andreas Raab" <andreas.raab at gmx.de> wrote:
> > It really isn't all that pretty, but tends to do everything you can
> > easily do without overcoming Squeak's not being re-entrant.
>
> Actually, it's not all that hard to support callbacks.
[SNIP of technical description that mostly flew over my head]
> That's about it. If you want to get fancy you can add some stuff in the
> Squeak process that serializes the returns appropriately so that callbacks
> invoked from different processes work appropriately. But really, supporting
> callbacks isn't all THAT hard ;-)
:) Well, since I only understood half of what you wrote... :)
But anyway, for my little GtkPlugin I am sticking to STTCPW for now.
So I will simply look at the other plugins and use some Semaphore etc to
do the "callbacks".
Btw, I also actually managed to drive the Gtk loop from within Squeak!
So no need to spawn a thread in the plugin just yet. Currently a
background Process in Squeak that calls the GtkPlugin every 10ms (or
whatever) seems to work good enough to move on.
Next step is of course the callback/signal/event-stuff. I have a plan,
but will need to look into more pluginish stuff before getting something
that works. Need to figure out how to handle the Gtkish C structs like
the GdkEvent, GtkWidget etc. IIRC Andreas has whipped up some classes
for those kind of things... ExternalStructure I guess.
> Cheers,
> - Andreas
regards, Göran
More information about the Squeak-dev
mailing list
|