Implement setlevel: for NSWindow

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6218 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2000-03-08 18:08:26 +00:00
parent bb0bd00009
commit b23022dbb0
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Mar 08 17:09:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSWindow.m: ([-setLevel:]) implemented.
Wed Mar 08 115:4500 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
Removed a fixup that should no longer be needed now that the

View file

@ -1143,7 +1143,11 @@ static NSMapTable* windowmaps = NULL;
- (void) setLevel: (int)newLevel
{
NSGraphicsContext *context = GSCurrentContext();
window_level = newLevel;
DPSsetwindowlevel(context, window_level, window_num);
[self orderFront: self];
}
/*
@ -3135,9 +3139,13 @@ resetCursorRectsForView(NSView *theView)
aSize = [aDecoder decodeSize];
[self setMaxSize: aSize];
/*
* Set window to the correct level without displaying it.
*/
[aDecoder decodeValueOfObjCType: @encode(int)
at: &anInt];
[self setLevel: anInt];
window_level = anInt;
DPSsetwindowlevel(GSCurrentContext(), window_level, window_num);
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &flag];
[self setExcludedFromWindowsMenu: flag];