Good evening or whatever it is out there.
I have another question, this time about MissingSubmenuFunction. It is a very cool feature (and powerfull) that, unfortunatelly is not so well documented. I’m trying to convert all my configuration menus into dinamic ones, so they are regenerated automatically when the contents change. So far, I got this working:
DestroyMenu menu_fvwmConfig AddToMenu menu_fvwmConfig MissingSubmenuFunction WallpaperBrowser + "Wallpapers" Popup WallpaperBrowser AddToMenu menu_fvwmConfig + "&Color sets%wine.png%" Popup menu_Colorsets + "&Decoración%wine.png%" Popup menu_Decorations
Of course, the WallpaperBrowser function is defined elsewhere. All is fine. The problem comes when I try to add another dinamic element (I suspect that I’m doing it terribly wrong). I try this:
DestroyMenu menu_fvwmConfig AddToMenu menu_fvwmConfig MissingSubmenuFunction WallpaperBrowser + "Wallpapers" Popup WallpaperBrowser AddToMenu menu_fvwmConfig MissingSubmenuFunction ColorsetBrowser + "Colorsets" Popup ColorsetBrowser + "&Decoración%wine.png%" Popup menu_Decorations
The problem is that, now, the colorsets menu is displayed and correctly updated when needed, but the wallpapers one does not display anymore. If I swap the order then the wallpapers menu is shown but the colorset is not. So, I suppose that, the latest MissingSubmenuFunction, takes precedence and kill the previous one. I think that Im not doing this with a correct sintax, or is it maybe that can only be one MissingSubmenuFunction on each menu level?
I tried to dig into the man page, but there are only three references to MissingSubmenuFunctions (not too much for such a complex function…).
Thanks, people, for any help
EDIT: I tried the following, which is basically the same, so, the behaviour is also the same.
DestroyMenu menu_fvwmConfig AddToMenu menu_fvwmConfig + MissingSubmenuFunction WallpaperBrowser + "Wallpapers%wine.png%" Popup WallpaperBrowser + MissingSubmenuFunction ColorsetBrowser + "&Colorsets%wine.png%" Popup ColorsetBrowser + "&Decoración%wine.png%" Popup menu_Decorations