I am using Ubuntu 13.04 with Unity.
I created an Application Indicator using the AppIndicator class in Python, with a gtk.Menu attached to it. The menu is showing some status information about GIT repositories that I don't want to be updated as long as the menu is not visible. Instead, when the user clicks on the AppIndicator and the menu becomes visible, I would like to get notified and update the information shown.
So far, I could not find a signal emitted by the Menu whenver it pops up. Nor does the AppIndicator have a signal emitted when it gets clicked. In fact, there is already this question but the answers only discuss if AppIndicator has (or should have) the appropriate signal. But what about the gtk.Menu itself?
So, my question is, how can I get notified that my menu becomes visible?