Revision: 6611
http://skim-app.svn.sourceforge.net/skim-app/?rev=6611&view=rev
Author: hofman
Date: 2010-07-12 23:48:06 +0000 (Mon, 12 Jul 2010)
Log Message:
-----------
fade out temporary fullscreen window instead of moving the main fullscreen
window back up
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2010-07-12 17:47:27 UTC (rev 6610)
+++ trunk/SKMainWindowController.m 2010-07-12 23:48:06 UTC (rev 6611)
@@ -1497,7 +1497,7 @@
if ([[fullScreenWindow firstResponder] isDescendantOf:pdfView])
[fullScreenWindow makeFirstResponder:nil];
- SKFullScreenWindow *bgWindow = [[SKFullScreenWindow alloc]
initWithScreen:[fullScreenWindow screen]];
+ SKFullScreenWindow *bgWindow = [[[SKFullScreenWindow alloc]
initWithScreen:[fullScreenWindow screen]] autorelease];
[bgWindow setBackgroundColor:[fullScreenWindow backgroundColor]];
[bgWindow setLevel:[fullScreenWindow level]];
[bgWindow orderWindow:NSWindowBelow relativeTo:[fullScreenWindow
windowNumber]];
@@ -1522,11 +1522,7 @@
else
[self applyPDFSettings:savedNormalSetup];
- [fullScreenWindow orderWindow:NSWindowBelow relativeTo:[bgWindow
windowNumber]];
- [fullScreenWindow displayIfNeeded];
- [bgWindow orderOut:nil];
- [bgWindow release];
- [fullScreenWindow setLevel:NSPopUpMenuWindowLevel];
+ [bgWindow setLevel:NSPopUpMenuWindowLevel];
SetSystemUIMode(kUIModeNormal, 0);
@@ -1539,9 +1535,9 @@
}
[self setWindow:mainWindow];
- [mainWindow orderWindow:NSWindowBelow relativeTo:[fullScreenWindow
windowNumber]];
+ [mainWindow orderWindow:NSWindowBelow relativeTo:[bgWindow windowNumber]];
[mainWindow display];
- [fullScreenWindow fadeOut];
+ [bgWindow fadeOut];
[mainWindow makeFirstResponder:pdfView];
[mainWindow recalculateKeyViewLoop];
[mainWindow setDelegate:self];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit