mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:40:38 +00:00
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:
parent
e4f088dbbf
commit
6b93ed7020
3 changed files with 35 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue