mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:31:03 +00:00
Small improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8503 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
494ab80f7a
commit
4f5d29c6a3
2 changed files with 11 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
Author: Scott Christley <scottc@net-community.com>
|
||||
Date: 1996
|
||||
Author: Fred Kiefer <fredkiefer@gmx.de>
|
||||
Date: 2000
|
||||
Date: November 2000
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
|
|
|
@ -55,6 +55,8 @@
|
|||
toData:(NSMutableData *)data
|
||||
printInfo:(NSPrintInfo *)aPrintInfo;
|
||||
|
||||
- (void) _print;
|
||||
|
||||
@end
|
||||
|
||||
// Subclass for the regular printing
|
||||
|
@ -380,10 +382,9 @@ static NSString *NSPrintOperationThreadKey = @"NSPrintOperationThreadKey";
|
|||
NSGraphicsContext *oldContext = [NSGraphicsContext currentContext];
|
||||
|
||||
[NSGraphicsContext setCurrentContext: _context];
|
||||
// This is the actual printing
|
||||
NS_DURING
|
||||
{
|
||||
[_view displayRect: _rect];
|
||||
[self _print];
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
|
@ -396,6 +397,7 @@ static NSString *NSPrintOperationThreadKey = @"NSPrintOperationThreadKey";
|
|||
|
||||
result = [self deliverResult];
|
||||
[self cleanUpOperation];
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -451,6 +453,12 @@ static NSString *NSPrintOperationThreadKey = @"NSPrintOperationThreadKey";
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) _print
|
||||
{
|
||||
// This is the actual printing
|
||||
[_view displayRect: _rect];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue