mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:50:37 +00:00
Window level corrections and tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2fbe2c2cd
commit
d0d4bc4847
4 changed files with 57 additions and 39 deletions
|
@ -129,11 +129,15 @@ static NSString *NSMenuLocationsKey = @"NSMenuLocations";
|
|||
|
||||
- (void)_setOwnedByPopUp: (BOOL)flag
|
||||
{
|
||||
menu_is_beholdenToPopUpButton = flag;
|
||||
|
||||
if (flag == YES)
|
||||
if (menu_is_beholdenToPopUpButton != flag)
|
||||
{
|
||||
[titleView removeFromSuperviewWithoutNeedingDisplay];
|
||||
menu_is_beholdenToPopUpButton = flag;
|
||||
if (flag == YES)
|
||||
{
|
||||
[titleView removeFromSuperviewWithoutNeedingDisplay];
|
||||
[aWindow setLevel: NSPopUpMenuWindowLevel];
|
||||
[bWindow setLevel: NSPopUpMenuWindowLevel];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue