This commit is contained in:
Riccardo Mottola 2020-06-26 20:33:50 +02:00
commit 16e5e53bbc
5 changed files with 18 additions and 4 deletions

View file

@ -55,7 +55,7 @@ extern "C" {
- (NSArray *) tagNames;
- (NSPaperOrientation) orientation;
- (void) setOrientation: (NSPaperOrientation)or;
- (void) setOrientation: (NSPaperOrientation)orientation;
- (NSSize) paperSize;
- (void) setPaperSize: (NSSize)size;

View file

@ -57,7 +57,7 @@ extern "C" {
@end
#if defined(__cplusplus)
}
#endif
#endif /* GS_API_MACOSX */

View file

@ -528,6 +528,7 @@ PACKAGE_SCOPE
- (void) orderWindow: (NSWindowOrderingMode)place
relativeTo: (NSInteger)otherWin;
- (BOOL) isVisible;
- (void) setIsVisible: (BOOL)flag;
- (NSInteger) level;
- (void) setLevel: (NSInteger)newLevel;

View file

@ -76,9 +76,9 @@
return _orientation;
}
- (void) setOrientation: (NSPaperOrientation)or
- (void) setOrientation: (NSPaperOrientation)orientation
{
_orientation = or;
_orientation = orientation;
}
- (NSSize) paperSize;

View file

@ -1720,6 +1720,19 @@ titleWithRepresentedFilename(NSString *representedFilename)
return _windowLevel;
}
- (void) setIsVisible: (BOOL)flag
{
_f.visible = flag;
if (flag)
{
[self orderFrontRegardless];
}
else
{
[self orderOut: nil];
}
}
- (void) makeKeyAndOrderFront: (id)sender
{
[self deminiaturize: self];