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