From: Elias P. <el...@us...> - 2003-05-29 14:13:18
|
On Thu, 2003-05-29 at 15:53, Eric Botcazou wrote: > > You're right. Someone should add a menu to exgui. (And maybe also > > replace do_dialog with an update_dialog at the same time, demonstrating > > how you can have non-blocking menus in the 4.1.x version). > > The first step is certainly to add menus to exgui. We can tweak it later for > the 4.1.x series. Patches are welcome :-) > > > In the meantime, have a look at setup/keyconf.c, or maybe even > > tools/grabber.c. They contain code for menus. > > Sure, but tools/grabber.c is not exactly a small source file. > True :) I just thought, he could get some more examples for how to make MENU arrays, after figuring out the base MENU code from keyconf.c.. Anyway, attached is a quick patch which adds a MENU to exgui.c. I also wanted to add all other GUI widgets, but ran out of room after a shadow_box and a slider. -- Elias Pschernig <el...@us...> |