On Wed, Apr 13, 2005 at 11:45:42AM +0200, Bill Allombert wrote:
> On Wed, Apr 13, 2005 at 02:47:32AM +0200, Daniel Brockman wrote:
> > Bill, can you verify that this is a bug in menu itself,
> > rather than in ratmenu's application of menu?
> > 
> > If not, do you think you could help fix the ratmenu script?
> > I've tried to understand the menu language with little avail,
> > and it seems Jonathan cannot find any error in the script.

Hello Morten,

I more than suspect that the three install-menu functions 
entryindex(), firstentry() and lastentry() do not work, 
and that cause that bug.

Add entryindex() in the start function in the fvwm menu-methods,
like that:
function start($var,$com)=\
            "+ \"" entryindex() " " escfirst(title(),$hotkey,"&") \
            cond_surr(icon(),"%","%") "\" " $var " " $com "\n"

rerun menu, we get a ~/.fvwm/menudefs.hook file with menu like:
...
AddToMenu "/Debian/Apps/Games/Card" "Card" Title Top
+ "12 &aBridge" Exec exec /usr/bin/abridge
+ "0 &Canfield" /home/bill
 x-terminal-emulator  -T "Canfield" -e /usr/games/canfield
+ "2 C&ribbage" /home/bill
 x-terminal-emulator  -T "Cribbage" -e /usr/games/cribbage
+ "4 &Floater%/usr/share/pixmaps/floater-24.xpm%" Exec exec /usr/games/floater
+ "6 &Go Fish" /home/bill
 x-terminal-emulator  -T "Go Fish" -e sh -c '/usr/games/fish;echo;echo PRESS 
ENT+ "8 &Mille Bornes" /home/bill
 x-terminal-emulator  -T "Mille Bornes" -e /usr/games/mille
+ "10 &Xpatience2" Exec exec /usr/games/xpat2

There is 3 problems:
1) "0" is not the first entry, that break firstentry().
2) The numbers are all even.
3) They are not sorted.

Do you know if it is possible to fix this bug?

Cheers,
--
Bill. <[EMAIL PROTECTED]>

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to