mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 07:51:29 +00:00
Indentation tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11113 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6058b88bf6
commit
53ad3452ff
1 changed files with 23 additions and 15 deletions
|
@ -245,10 +245,12 @@
|
|||
else
|
||||
{
|
||||
if (filename) [_window setRepresentedFilename:filename];
|
||||
{
|
||||
[_window setTitle:title];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL) isWindowLoaded
|
||||
{
|
||||
|
@ -307,8 +309,8 @@
|
|||
* extreme top of the screen, and offset only a small amount
|
||||
* from the left.
|
||||
*/
|
||||
nextWindowLocation = [_window
|
||||
cascadeTopLeftFromPoint: nextWindowLocation];
|
||||
nextWindowLocation
|
||||
= [_window cascadeTopLeftFromPoint: nextWindowLocation];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -317,18 +319,24 @@
|
|||
|
||||
- (void) loadWindow
|
||||
{
|
||||
if ([self isWindowLoaded]) return;
|
||||
if ([self isWindowLoaded])
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ([NSBundle loadNibNamed: _windowNibName owner: _owner])
|
||||
{
|
||||
_wcFlags.nibIsLoaded = YES;
|
||||
|
||||
if (_window == nil && _document && _owner == _document)
|
||||
if (_window == nil && _document != nil && _owner == _document)
|
||||
{
|
||||
[self setWindow: [_document _transferWindowOwnership]];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"%@: could not load nib named %@.nib", [self class], _windowNibName);
|
||||
NSLog (@"%@: could not load nib named %@.nib",
|
||||
[self class], _windowNibName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue