Minor fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5520 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-12-15 15:28:18 +00:00
parent e4f088dbbf
commit 6b93ed7020
3 changed files with 35 additions and 3 deletions

View file

@ -1036,6 +1036,12 @@ static NSString* NSMenuLocationsKey = @"NSMenuLocations";
[aWindow orderFront: nil];
menu_isPartlyOffScreen = IS_OFFSCREEN(aWindow);
/*
* If we have just been made visible, we must make sure that any attached
* submenu is visible too.
*/
[[self attachedMenu] display];
}
- (void) displayTransient
@ -1069,6 +1075,18 @@ static NSString* NSMenuLocationsKey = @"NSMenuLocations";
- (void) close
{
NSMenu *sub = [self attachedMenu];
/*
* If we have an attached submenu, we must close that too - but then make
* sure we still have a record of it so that it can be re-displayed if we
* are redisplayed.
*/
if (sub != nil)
{
[sub close];
menu_attachedMenu = sub;
}
[aWindow orderOut: self];
menu_is_visible = NO;