On 22 Jan 2004 21:42:17 +0100, Mario Domg?rgen wrote:
>
> Mikhael Goikhman <migo_at_homemail.com> writes:
>
> > I meant a debug trace of your module, not fvwm. This Debug line is ok.
> > Just restart fvwm (to ensure all additional noisy modules are killed),
> > optionally run your module from FvwmConsole if not yet, and paste the
> > output you find in the X output file. Or just post your whole module.
>
> ,----
> | [gnomeicu]: sent [SET_MASK 0]
> | [gnomeicu]: sent [SET_SYNC_MASK 0]
> | [gnomeicu]: observe "scheduled alarm"
> | [gnomeicu]: sent [Schedule 2000 8778153 SendToModule gnomeicu FVWM::Tracker::Scheduler alarm 1]
> | [gnomeicu]: sent [Module FvwmButtons GnomeIcu]
> | [gnomeicu]: sent [SendToModule GnomeIcu ChangeButton icon Icon "/home/drache/.icq/icons/Windows ICQ/gnomeicu-away.png"]
> | [gnomeicu]: sent [SendToModule GnomeIcu ChangeButton icon Title 0]
> | GnomeIcu: Cannot create a title, only change one
This last error means you didn't define Title property in you FvwmButtons
button having id "icon". So, you are not able to change the non existing
title to "0" as shown above.
> `----
>
> I hope that is the right backtrace.... :)
Yes, this is right, and you may see there are only "sent (to fvwm)" and
no single "got (from fvwm)". Your module immediatelly exits after
reaching the end. This is not what you want. You want to make it
persistent by entering the event loop:
$module->eventLoop;
So just add this line to the end of your module. You configured the
scheduler tracker so every 2 seconds it communicates with fvwm and
updates your FvwmButtons. So the debug output will be pretty verbose.
To break the event loop, do $module->terminate from any event handler.
Otherwise your module lives forever until fvwm closes a pipe to it on
exit or on KillModule, this is probably what you want.
Regards,
Mikhael.
--
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 Thu Jan 22 2004 - 15:13:28 GMT