Revision: 2617
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2617&view=rev
Author:   hofman
Date:     2007-08-07 03:09:03 -0700 (Tue, 07 Aug 2007)

Log Message:
-----------
Disable fullscreen and presentation mode when  the document is locked as it has 
weird side effects.

Modified Paths:
--------------
    trunk/SKMainWindowController.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2007-08-07 09:07:29 UTC (rev 2616)
+++ trunk/SKMainWindowController.m      2007-08-07 10:09:03 UTC (rev 2617)
@@ -2089,7 +2089,7 @@
 - (void)saveNormalSetup {
     if ([self isPresentation] == NO && [self isFullScreen] == NO) {
         NSScrollView *scrollView = [[pdfView documentView] 
enclosingScrollView];
-        [savedNormalSetup setDictionary:[self currentSetup]];
+        [savedNormalSetup setDictionary:[self currentPDFSettings]];
         [savedNormalSetup setObject:[NSNumber numberWithBool:[scrollView 
hasHorizontalScroller]] forKey:@"hasHorizontalScroller"];
         [savedNormalSetup setObject:[NSNumber numberWithBool:[scrollView 
hasVerticalScroller]] forKey:@"hasVerticalScroller"];
         [savedNormalSetup setObject:[NSNumber numberWithBool:[scrollView 
autohidesScrollers]] forKey:@"autohidesScrollers"];
@@ -4507,13 +4507,13 @@
             [menuItem setTitle:NSLocalizedString(@"Remove Full Screen", @"Menu 
item title")];
         else
             [menuItem setTitle:NSLocalizedString(@"Full Screen", @"Menu item 
title")];
-        return YES;
+        return [[self pdfDocument] isLocked] == NO;
     } else if (action == @selector(togglePresentation:)) {
         if ([self isPresentation])
             [menuItem setTitle:NSLocalizedString(@"Remove Presentation", 
@"Menu item title")];
         else
             [menuItem setTitle:NSLocalizedString(@"Presentation", @"Menu item 
title")];
-        return YES;
+        return [[self pdfDocument] isLocked] == NO;
     } else if (action == @selector(getInfo:)) {
         return [self isPresentation] == NO;
     } else if (action == @selector(performFit:)) {


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to