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:
Pietro Gagliardi 2015-05-11 10:30:21 -04:00
parent ce29c062f1
commit 9dfa95b3e1
1 changed files with 11 additions and 0 deletions

View File

@ -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);