Pupeno wrote: > I am tring to make some clean bindings for Gtk+ and I don't know how to > handle > the callbacks.
Fair enough. Wrapping Gtk+ is enormously painful. I've already taken a stab at writing bindings; if you haven't already taken a look, they're available here: http://homepages.kcbbs.gen.nz/~tonyg/chicken/chicken-gtk2-20021202-1.tar.bz2 The code has rotted a lot since I wrote it, mostly because Chicken has kept moving while my old code has stayed still, but it should be easy enough to clean it up to get working with a modern Chicken release. Certainly the old code ran the included demos (test/test+.scm, test/explore.scm) just fine at one stage. The part that addresses the problem you're having with callbacks is the implementation of gsignal-connect in gobject.scm, along with glib's gtype-based built-in "marshalling" support, that provides enough metadata to allow limited conversion to and from Scheme types. I've rendered the API documentation, which also mentions some of the issues in binding glib, gobject, and Gtk+ to Scheme, and made it available here: http://homepages.kcbbs.gen.nz/~tonyg/chicken/chicken-gtk2.pdf Tony _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
