mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 17:10:41 +00:00
Fixed level setting
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5603 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
87b9c06968
commit
9904b6ad6b
1 changed files with 13 additions and 2 deletions
|
@ -118,7 +118,18 @@
|
||||||
|
|
||||||
- (void) setFloatingPanel: (BOOL)flag
|
- (void) setFloatingPanel: (BOOL)flag
|
||||||
{
|
{
|
||||||
_isFloatingPanel = flag;
|
if (_isFloatingPanel != flag)
|
||||||
|
{
|
||||||
|
_isFloatingPanel = flag;
|
||||||
|
if (flag == YES)
|
||||||
|
{
|
||||||
|
[self setLevel: NSFloatingWindowLevel];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[self setLevel: NSNormalWindowLevel];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) worksWhenModal
|
- (BOOL) worksWhenModal
|
||||||
|
@ -308,7 +319,7 @@ static GSAlertPanel *gmodelAlertPanel = nil;
|
||||||
[box setTitlePosition: NSNoTitle];
|
[box setTitlePosition: NSNoTitle];
|
||||||
[box setBorderType: NSGrooveBorder];
|
[box setBorderType: NSGrooveBorder];
|
||||||
[content addSubview: box];
|
[content addSubview: box];
|
||||||
[box release];
|
RELEASE(box);
|
||||||
|
|
||||||
rect.size.height = bh;
|
rect.size.height = bh;
|
||||||
rect.size.width = bw;
|
rect.size.width = bw;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue