Revision: 6532
http://skim-app.svn.sourceforge.net/skim-app/?rev=6532&view=rev
Author: hofman
Date: 2010-05-12 21:31:19 +0000 (Wed, 12 May 2010)
Log Message:
-----------
also disable full screen animation when pref is set
Modified Paths:
--------------
trunk/SKFullScreenWindow.m
Modified: trunk/SKFullScreenWindow.m
===================================================================
--- trunk/SKFullScreenWindow.m 2010-05-12 21:17:21 UTC (rev 6531)
+++ trunk/SKFullScreenWindow.m 2010-05-12 21:31:19 UTC (rev 6532)
@@ -40,6 +40,7 @@
#import "SKMainWindowController.h"
#import "SKMainWindowController_Actions.h"
#import "NSEvent_SKExtensions.h"
+#import "SKStringConstants.h"
@implementation SKFullScreenWindow
@@ -128,15 +129,20 @@
}
- (void)fadeOutBlocking:(BOOL)block {
- NSDictionary *fadeOutDict = [[NSDictionary alloc]
initWithObjectsAndKeys:self, NSViewAnimationTargetKey,
NSViewAnimationFadeOutEffect, NSViewAnimationEffectKey, nil];
- animation = [[NSViewAnimation alloc] initWithViewAnimations:[NSArray
arrayWithObjects:fadeOutDict, nil]];
- [fadeOutDict release];
-
- [animation setAnimationBlockingMode:block ? NSAnimationBlocking :
NSAnimationNonblockingThreaded];
- [animation setAnimationCurve:block ? NSAnimationEaseIn :
NSAnimationEaseInOut];
- [animation setDuration:0.5];
- [animation setDelegate:self];
- [animation startAnimation];
+ if ([[NSUserDefaults standardUserDefaults]
boolForKey:SKDisableAnimationsKey]) {
+ [self orderOut:nil];
+ [self setAlphaValue:1.0];
+ } else {
+ NSDictionary *fadeOutDict = [[NSDictionary alloc]
initWithObjectsAndKeys:self, NSViewAnimationTargetKey,
NSViewAnimationFadeOutEffect, NSViewAnimationEffectKey, nil];
+ animation = [[NSViewAnimation alloc] initWithViewAnimations:[NSArray
arrayWithObjects:fadeOutDict, nil]];
+ [fadeOutDict release];
+
+ [animation setAnimationBlockingMode:block ? NSAnimationBlocking :
NSAnimationNonblockingThreaded];
+ [animation setAnimationCurve:block ? NSAnimationEaseIn :
NSAnimationEaseInOut];
+ [animation setDuration:0.5];
+ [animation setDelegate:self];
+ [animation startAnimation];
+ }
}
- (void)fadeOutBlocking {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit