Recognize "Window" as windows menu (for menus ported from macosx)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6153 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-03-02 02:55:17 +00:00
parent 9823cba8d9
commit dc9e1e6615

View file

@ -1699,7 +1699,9 @@ NSAssert([event retainCount] > 0, NSInternalInconsistencyException);
for (i = 0; i < j; ++i)
{
anItem = [menuItems objectAtIndex: i];
if ([[anItem title] compare: @"Windows"] == NSOrderedSame)
/* "Window" is for compatibility with menus ported from apple */
if (([[anItem title] compare: @"Windows"] == NSOrderedSame)
|| ([[anItem title] compare: @"Window"] == NSOrderedSame))
{
windows_menu = anItem;
break;