>> Well as soon as I saw the recreate I said to myself doh. Seems to
make
>> sense, but sounds kinda kludgy to me so I'll go with my original idea
to
>> read them all if you popup the Headlines menu maybe via a function.
> Well, I haven't looked at the code, so I can't comment on how
kludgy it
> may be, but I don't see what the problem is with having an option on
the
> DestroyMenu command that effectively says "destroy only the menu
items,
> but retain the menu attributes". And (assuming that it works properly)
I
> can't see anything much easier than changing the script that creates
the
> freshmeatmenu, etc., files to insert the line "DestroyMenu Recreate
> Freshmeat" instead of simply "DestroyMenu Freshmeat".
Well the problem seems to be that a recreate doesn't do the add the
DynamicPopupAction back into the menu, I've also not looked at the code
but what I think that the recreate option does is saves you from having
to use an addtomenu to make it again, but I could be wrong. So as a
result we're back to the same thing again. I suppose kludgy might be
the wrong word to use, how about cluttered? So if recreate doesn't
recreate the menu with it's previous options such as DynamicPopupAction
as "I" think your saying it does or think is does, then our solutions
are as you said to have the perl script toss that in it, or use some
other way like a function for each one as the man page examples have for
the jpgmenu. Neither are something IMHO are the best solution so I just
did this:
DestroyMenu Headlines
AddToMenu Headlines Headlines Title
+ DynamicPopupAction Headlines
+ "Freshmeat" Popup Freshmeat
+ "Slashdot" Popup Slashdot
+ "Linux Today" Popup LinuxToday
DestroyFunc Headlines
AddToFunc Headlines
+ "I" Read .freshmeatmenu quiet
+ "I" Read .slashdotmenu quiet
+ "I" Read .linuxtodaymenu quiet
Which works just dandy I must say and it's cleaner then some of the
other solutions.
BTW if anyone else wants them it's not hard to modify even for someone
like me that knows less then 0% about perl. Or I can give you mine...
--
This is my .sig, pretty dull eh
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Oct 24 1999 - 11:50:35 BST