Re: FVWM: Conditionally adding menu items

From: Tavis Ormandy <taviso_at_sdf.lonestar.org>
Date: Fri, 26 Mar 2004 10:05:31 +0000

--On Friday, March 26, 2004 10:54:34 +0100 Uwe Pross
<keinFruehstuecksfleisch_at_gmx.net> wrote:

> Hi there,
>
> On 26 Mar 2004 at 09:33:36 +0000, Tavis Ormandy wrote:
>
>> You could make it more generic,
>>
>> AddToFunc CondAdd I Test (f $0) AddToMenu $1 %$2%$3 Exec $0
>> ...
>> CondAdd /usr/bin/mozilla Programs mozilla.xpm Mozilla
>
> Have you tested this code? The man page (2.5.8.) does not
> say anything about "Test (f ...)".
>

Interesting! It seems to be undocumented, works just fine though (just
double checked).

I'm not sure how I found out about this feature, it should be documented
though, i've found it useful a few times :)

-- 
-------------------------------------
taviso_at_sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------



--
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 Fri Mar 26 2004 - 04:07:55 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST