On Thu, 23 May 2019 10:55:02 GMT, Alex X wrote:
On Wed, 22 May 2019 22:24:25 GMT, Alex X wrote:
Is there a way to get the menuitems from a menu. I really just need the id's of all the menuitems attached/appended. (it's loaded from a glade file so I don't have them directly)
Are you talking about the CSS ID's or just some way to identify which MenuItem has been selected by the user?
Also, How can I compare widgets in a menu to find out which menuitem was used in one handler?
menuItem1.addOnButtonPress(x); menuItem2.addOnButtonPress(x);
The signal you want to connect is onActivate using the addOnActivate() function.
I've never used Glade, but perhaps some of the articles on my blog will help. The stuff on Menus starts here.