Hi Dan,
[snip]
This a question for those with better knowledge of gschem internals.
I see where system-gschemrc defines all of the menus, but what I'm wondering is if it is possible to write a callback entirely within scheme. In other words I want to have my gschemrc load my own scheme file which will have something like:
(add-menu "MyMenu" my:menu-items)
but I want to write the my-about, my-manual, my-menuitem actions in scheme.
Anyone know if this is possible with the current gschem or what it might take to be able to do this?
[snip]
This should be quite possible. Are you having trouble with
your implementation? I looked at the diffs, I didn't see anything glaring wrong (just a quick quick quick look).
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.
Neat. I'm all of this if it can be contained and doesn't introduce too many forced dependancies. That might turn out to be tricky.
-Dan