On Mon, 2007-04-16 at 12:46 +1000, skaller wrote: > On Mon, 2007-04-16 at 14:28 +1200, Paul Findlay wrote: > > > There is a solution: map gtk onto a socket, and use two > > > pthreads. > > http://www.gtk-server.org/intro.html > > Ah .. that looks cool!
Just to be clear: Felix has no real problem driving GTK directly .. (there's a sample in the sandbox) .. the problem is that GTK is a dictator and wants to own the world .. and so is Felix. Both systems are frameworks with their own event loops. Using threads allows both system to run their loops, but imposes a synchronisation problem. Using a stream based approach removes the sync problems entirely at the cost of needing to encode things which often can't be encoded, eg program code can't easily be sent across a network. The docs are a bit light on how it actually works .. perhaps someone can play a bit with it and report back? Ideally, the problem to be solved is we really want to control invert GTK .. so we use fthreads instead of callbacks. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language