[prev in list] [next in list] [prev in thread] [next in thread]
List: fvwm
Subject: FVWM: FvwmButtons and dynamic menus
From: Ryan Daly <daly () ctcnet ! net>
Date: 2007-10-24 17:06:41
Message-ID: 1193245601.4118.43.camel () riddler
[Download RAW message or body]
All:
I'm using FVWM v2.5.23.
Is there a way to have FvwmButtons PopUp a dynamically generated menu?
The (hopefully) relevant info follows...
DestroyMenu "RootMenu"
AddToMenu "RootMenu" $[HOST] Title
+ MissingSubmenuFunction FuncFvwmMenuDirectory
+ "" Nop
+ "Shells %mini.fvwm.xpm%" Popup "$[FVWM_USERDIR]/menus/Shells"
...and the function...
DestroyFunc "FuncFvwmMenuDirectory"
AddToFunc "FuncFvwmMenuDirectory"
+ I PipeRead '$[FVWM_USERDIR]/conf.d/fvwm2rc.make.menu "$0"'
fvwm2rc.make.menu is a Perl script I wrote to generate a menu when you
pass a directory to it.
My problem is that the menu "$[FVWM_USERDIR]/menus/Shells" doesn't exist
until I open the RootMenu. FVWM dynamically generates the
"$[FVWM_USERDIR]/menus/Shells" menu with MissingSubmenuFunction.
Is there anything similar that I can do with FvwmButtons (maybe we a
Function of some sort)? I only want this particular menu displayed when
I click on the button defined below:
*FvwmButtonsTopBar: (1x1, Title '$[HOST]', Action 'Popup \
"$[FVWM_USERDIR]/menus/Shells"')
Thanks in advance.
--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic