aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-06-25 23:05:44 +0000
committerrowanbeentje <rowan@beent.je>2009-06-25 23:05:44 +0000
commit11790e1f90b457f440b2d2bd36a7a576dc1e427d (patch)
tree2ccdbd20bfbc246e0de31ccf9c354a763c6645ae /Source
parent4f7a6885813b7e8bd2e09c00567fd88a20c66af7 (diff)
downloadsequelpro-11790e1f90b457f440b2d2bd36a7a576dc1e427d.tar.gz
sequelpro-11790e1f90b457f440b2d2bd36a7a576dc1e427d.tar.bz2
sequelpro-11790e1f90b457f440b2d2bd36a7a576dc1e427d.zip
- Revert r844, making background printing draw from the print accessory view again. Improve by setting background printing to on by default, read on startup.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPPrintAccessory.m1
-rw-r--r--Source/TableDocument.m3
2 files changed, 1 insertions, 3 deletions
diff --git a/Source/SPPrintAccessory.m b/Source/SPPrintAccessory.m
index 4128e8ad..93c7ce4e 100644
--- a/Source/SPPrintAccessory.m
+++ b/Source/SPPrintAccessory.m
@@ -12,6 +12,7 @@
- (void)awakeFromNib
{
[self setView:printAccessoryView];
+ [[WebPreferences standardPreferences] setShouldPrintBackgrounds:[[defaultsController valueForKeyPath:@"values.PrintBackground"] boolValue] ];
[defaultsController addObserver:self forKeyPath:@"values.PrintBackground" options:NSKeyValueObservingOptionNew context:@"PrinterSettingsChanged"];
}
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 3cc11425..acd8d978 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -81,9 +81,6 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
sshTunnel = nil;
printWebView = [[WebView alloc] init];
- // otherwise WebView doesn't print background colors
- WebPreferences* wvPrefs = [printWebView preferences];
- [wvPrefs setShouldPrintBackgrounds: YES];
[printWebView setFrameLoadDelegate:self];
prefs = [NSUserDefaults standardUserDefaults];