Generate menu group id automatically.

In GTK+ radio menu items are managed automatically, so group id won't
have any effect there, in the meanwhile we need to maintain the same
behavior on all platforms, so we have to generate group id instead of
letting users specifying it.
This commit is contained in:
Cheng Zhao 2014-05-25 12:32:47 +08:00
parent 76d0d3ec19
commit 04fbec5120
3 changed files with 37 additions and 16 deletions

View file

@ -17,7 +17,6 @@
* `enabled` Boolean
* `visible` Boolean
* `checked` Boolean
* `groupId` Integer - Should be specified for `radio` type menu item
* `submenu` Menu - Should be specified for `submenu` type menu item, when
it's specified the `type: 'submenu'` can be omitted for the menu item