steve tell wrote:
On Sun, 23 Apr 2006, Ales Hvezda wrote:
I'm thinking it might be useful to link in with guile-gtk too so users
could hook in gui stuff into their own menu choices.
Any suggestions?
This might be tricky with guile-gtk. I don't know what state these
bindings are in. The last time I looked guile-gtk was only for gtk+
1.2.x.
However, it looks like guile-gnome might be more current. I would hate
to introduce a forced dependancy on gnome.
Despite the name, guile-gnome does not _require_ gnome, but will check
for it and use it to build gnome bindings if available. If gnome isn't
present, it builds into glib- and gtk+-only bindings.
A few years ago I experimented with using guile-gtk from within gschem,
and once guile-gtk is installed, it "just worked" from gschem. But I
can't find any of that hackery now.
Installing guile-gtk is harder than it should be, however. It doesn't
ship with nearly as many distributions as guile, but doesn't work
without extra fiddling unless installed into the same prefix as guile
itself. Reportedly the guile folks are working to improve package
installation under guile-1.8.
Upon further consideration I decided that at least for now I don't
really need full gtk access from scheme in gschem but rather just access
to a couple of specific things (message dialog, confirm dialog,
fileselect dialog, write to the log). I just implemented those in a
fairly generic way in c and exported them to scheme. I think thats
going to work out reasonably well and not be too obtrusive.
-Dan