[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA: Attributes
Hi,
>In my experimental version of gwave, I made menus configurable from guile
>by evicting the entire menu-building code out of C and into scheme, and
>using guile-gtk to build the menus themselves. Constructing Gtk+ menus is
>much easier when you build a few little helper function anyway (whether in
>C or guile), so I would imagine that a suitable guile function could
>construct and attach a menu item, and also bind a keystroke to the same
>action procedure.
Hmmm.. that is a thought. I do have a question about this. Did
you init gtk from the C or guile side? I've long since thought about
having the ability to create windows from the guile side but I want to
do all the setup and real work from the C side. Maybe I should get off of
my lazy butt and try it. :)
>
>This also forced me to go through and make sure that all primitives I
>wanted accessible from menus were exported to guile. The only remnant of
>menus in my C code is the creation of an empty Gtk+ menu bar in each
>window.
This shouldn't be a problem, since all the callbacks are already
visible from scheme. The keymapping code is already mostly scheme.
What I don't want is another scheme structure/list which replicates the
key mapping info; ie I would like to have one structure which defines:
mapping of keystrokes to action (the existing) and the names of the
pulldown items all in one place. Tricky due to how the current system
works.
>
>And speaking of gwave, my day job is showing signs of easing up to just
>the normal level of chaos shortly, so I hope to release a new version of
>the waveform viewer sometime soon.
Looking forward to it.
Thanks for the ideas.
-Ales