Modifying a PurplePluginAction label

Etan Reisner pidgin at unreliablesource.net
Mon Feb 11 22:34:53 EST 2008


On Tue, Feb 12, 2008 at 01:00:48AM -0200, Matí­as Alejandro Torres wrote:
<snip>
> Thanks for replying. You're saying that the funcion that creates the
> actions and return a GList of PurplePluginActions is called everytime
> the Tools menu is displayed?? That's not working for me, this function
> is called only when the plugin is loaded. But ...Maybe I did not
> understand your reply! If that the case, please, explain this to as you
> would to a 6 year old :P.
>
> Remember that I want the label to show diferent sentences through
> program execution.
>
> Thanks again, Matías.

So it appears I was not entirely correct, the menu is rebuilt every time a
plugin is loaded or unloaded and at run time. So it isn't every time the
menu is shown, which is a good thing because that would be a bit
excessive.

What are you trying to do with your menu items that you need them to
change frequently?

    -Etan




More information about the Devel mailing list