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 !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 !
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
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 !