Correct problem with popups in windows 95 mode.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29314 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-01-19 18:48:00 +00:00
parent 0aaba869e3
commit a86d938f74
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-01-19 13:49-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSMenu.m: Allow menus attached to popups to come up
in Windows95 mode.
2010-01-19 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenu.m (-initWithCoder:): Use YES as default value for

View file

@ -155,7 +155,7 @@ static BOOL menuBarVisible = YES;
if (style == NSWindows95InterfaceStyle)
{
// if we're the top level menu in Windows mode, don't show it.
if([_the_menu supermenu] == nil)
if([_the_menu supermenu] == nil && [_the_menu _ownedByPopUp] == NO)
{
return;
}