Added a test of having multiple consecutive separators in, separators at the start of, and separators at the end of a menu. How OS X behaves is the deciding factor here.
This commit is contained in:
parent
ce29c062f1
commit
9dfa95b3e1
11
test/menus.c
11
test/menus.c
|
@ -22,6 +22,7 @@ uiMenuItem *quitEnabledItem;
|
|||
uiMenuItem *prefsEnabledItem;
|
||||
uiMenuItem *aboutEnabledItem;
|
||||
uiMenuItem *checkEnabledItem;
|
||||
uiMenu *multiMenu;
|
||||
uiMenu *helpMenu;
|
||||
uiMenuItem *helpItem;
|
||||
uiMenuItem *aboutItem;
|
||||
|
@ -90,6 +91,16 @@ void initMenus(void)
|
|||
checkEnabledItem = uiMenuAppendCheckItem(moreTestsMenu, "Check Me Item Enabled");
|
||||
uiMenuItemSetChecked(checkEnabledItem, 1);
|
||||
|
||||
multiMenu = uiNewMenu("Multi");
|
||||
uiMenuAppendSeparator(multiMenu);
|
||||
uiMenuAppendSeparator(multiMenu);
|
||||
uiMenuAppendItem(multiMenu, "Item");
|
||||
uiMenuAppendSeparator(multiMenu);
|
||||
uiMenuAppendSeparator(multiMenu);
|
||||
uiMenuAppendItem(multiMenu, "Item");
|
||||
uiMenuAppendSeparator(multiMenu);
|
||||
uiMenuAppendSeparator(multiMenu);
|
||||
|
||||
helpMenu = uiNewMenu("Help");
|
||||
helpItem = uiMenuAppendItem(helpMenu, "Help");
|
||||
aboutItem = uiMenuAppendAboutItem(helpMenu);
|
||||
|
|
Loading…
Reference in New Issue