[Adium-devl] -[AIAccountMenu menuNeedsUpdate:] - why do we need to rebuild the menus so often?

Evan Schoenberg evan.s at dreskin.net
Wed Nov 21 07:03:26 UTC 2007


On Nov 20, 2007, at 4:35 PM, Andreas Monitzer wrote:

> However, the prpl
> doesn't know yet wether the server supports PEP, so it doesn't know
> what items to display in the menu. Additionally, there may be ad-hoc
> commands, which can't be decided yet either.
> One more thing are ad-hoc commands of the clients connected to the
> same account. Those are dynamic, since other clients can go online and
> offline at will.
> Basically, the only better solution would be to implement some kind of
> notification when the menu changes right into libpurple. I didn't dare
> to implement that, but I guess it would be fairly simple using the IPC
> mechanism (that's what I used for the CDSA-plugin).

Does libpurple know when clients being advertising or stop advertising  
ad-hoc commands?  Or do we have to poll for that information when we  
go to build the menu?

If the former, I would think that simply sending a signal via the  
standard purple signal system would be the way to go; "account-actions- 
changed" or the like.  It could be registered in the core (account.c,  
perhaps) and posted by any prpl which cares to let the world know that  
its actions have changed.  Am I oversimplifying the problem?

-Evan




More information about the devel mailing list