mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Tidy window level for menus
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5243 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
05ba07e9e8
commit
94bb4d75c1
2 changed files with 16 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Nov 20 6:56:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSMenu.m: Implemented ([-initDefaults]) to set window level
|
||||
in pre-initialisation so the information is available when backend
|
||||
window is created.
|
||||
|
||||
1999-11-19 David Lazaro Saz <khelekir@encomix.es>
|
||||
|
||||
* Source/NSMenuView.m ([NSMenuView -trackWithEvent:]): Added two
|
||||
|
|
|
@ -1222,15 +1222,18 @@ static NSString* NSMenuLocationsKey = @"NSMenuLocations";
|
|||
}
|
||||
}
|
||||
|
||||
- (void) initDefaults
|
||||
{
|
||||
[super initDefaults];
|
||||
window_level = NSSubmenuWindowLevel;
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
[self initWithContentRect: NSZeroRect
|
||||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreBuffered
|
||||
defer: NO];
|
||||
|
||||
window_level = NSSubmenuWindowLevel;
|
||||
|
||||
self = [self initWithContentRect: NSZeroRect
|
||||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreBuffered
|
||||
defer: NO];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue