On Thu, 17 Aug 2000, Juergen Vigna wrote:
> - I had a look at Menubar_pimpl.C and have seen the composeUI function in
> which you search for some commands to probably use some standard, GNOME
> menu items for them, but why to you use the command-string and not directly
> the action-int inside a switch like:
>
> kb_action action;
> string argument;
> if (lyxaction.isPseudoAction
> action = lyxaction.retrieveActionArg(ac, argument);
> else
> action = static_cast<kb_action>(ac);
>
> switch(action) {
> case LFUN_FILE_OPEN:
> gitem = Open(cback);
> break;
> case LFUN_QUIT:
> gitem = Exit(cback);
> break;
> ...
> }
here comes the patch that implements it.
Marko
gnome.menupatch.gz