Thursday, May 2, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1223  / 2 Years ago, sat, october 29, 2022, 6:07:22

I'm looking at writing a simple app indicator and I need it to update it's information whenever it's clicked on to open the menu. Is there any kind of on_click action thing?



Let me rephrase it then: How to perform an action (any action) when the user clicks on the appindicator to open its menu?


More From » application-development

 Answers
6

An app indicator can only open its menu. It can't perform any other action and your program doesn't get notified when the menu is displayed.



You could either include some kind of "Update" menu item or find other events that trigger the update.


[#33910] Sunday, October 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kroapathe

Total Points: 445
Total Questions: 117
Total Answers: 99

Location: Botswana
Member since Sun, Sep 19, 2021
3 Years ago
;