Hello!
I am trying to make a FvwmButtons panel which would reconfigure itself upon certain events. Reacting to the events works fine. However, sometimes it happens that the panel turns out to be empty (as semantically expected), which causes the “No buttons defined. Quitting.” error. So far, so good.
The problem is that upon the next reconfiguration (again, as a result of receiving some event), the FvwmButtons instance of the modules is not respawned, so the panel stops working.
The code. First, the button which is used to activate the panel:
*SystemPanel: (2x3, Icon icon.png, Colorset 24, Panel (left) MyPanel "Module FvwmButtons -g -3000-3000 -transient MyPanel")
Now, the function that defines the panel itself:
[code]DestroyFunc RestartMyPanel
AddToFunc RestartMyPanel
-
I DestroyModuleConfig MyPanel: *
-
I *MyPanel: Rows 1
-
I Test (…) *MyPanel: (Icon icon1.png, Colorset 25, Action Func1)
-
I Test (…) *MyPanel: (Icon icon2png, Colorset 26, Action Func2)
-
I Test …
-
I KillModule FvwmButtons MyPanel
[/code]
The events mentioned above always result in calling RestartMyPanel. As said, everything works fine until MyPanel ends up to be empty after some series of events.
Fvwm 2.5.18. Any ideas?
Many thanks,
– owl