Menu

Improve menus

Hoël
2015-07-09
2015-07-15
  • Hoël

    Hoël - 2015-07-09

    Hi !

    I'm trying to create a systray icon for connman, which would allow to connect and disconnect networks.
    I would need, for this, to be able to create more complex menus than what we can currently do. For example, checkable menus would allow me to set some properties (autoconnect for example) without needing to start an external application.
    Could you implement such a thing ? (Or tell about it in the documentation if it is already available ^^)

    Thank you !

     
  • Thomas Luebking

    Thomas Luebking - 2015-07-13

    Does not exist, is implementable (trivial), BUT:
    I'm not sure what you want to do, but you'll rather still have to rewrite the menu and update it to ensure that the indicated state does really reflect the true state.

    Ie. this is only good for a cosmetic change:

    Disable Network <-> Enable Network
    would become
    [ ] Network <-> [x] Network

     
  • Hoël

    Hoël - 2015-07-15

    Right... I didn't thought about it.
    I'm still interested in it, I care about cosmetic changes. ^^
    Since in my app (if I can call it an app !), the menu is writed and updated every time you click on the button (using the preExec property), it should not be a problem.

    Thanks !

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.