Revision: 3302
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3302&view=rev
Author:   hofman
Date:     2007-12-03 02:22:35 -0800 (Mon, 03 Dec 2007)

Log Message:
-----------
Re-enable Actual Size menu item in presentation mode. Always change state of 
navigation button when the scale changes.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2007-12-03 09:42:22 UTC (rev 3301)
+++ trunk/SKMainWindowController.m      2007-12-03 10:22:35 UTC (rev 3302)
@@ -5253,7 +5253,7 @@
     } else if (action == @selector(doZoomOut:)) {
         return [self isPresentation] == NO && [pdfView canZoomOut];
     } else if (action == @selector(doZoomToActualSize:)) {
-        return [self isPresentation] == NO && fabsf([pdfView scaleFactor] - 
1.0 ) > 0.01;
+        return fabsf([pdfView scaleFactor] - 1.0 ) > 0.01;
     } else if (action == @selector(doZoomToPhysicalSize:)) {
         return [self isPresentation] == NO;
     } else if (action == @selector(doZoomToSelection:)) {

Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m  2007-12-03 09:42:22 UTC (rev 3301)
+++ trunk/SKNavigationWindow.m  2007-12-03 10:22:35 UTC (rev 3302)
@@ -425,11 +425,10 @@
 }
 
 - (void)handleScaleChangedNotification:(NSNotification *)notification {
-    if ([[self window] isVisible] && NSPointInRect([self convertPoint:[[self 
window] mouseLocationOutsideOfEventStream] fromView:nil], [self bounds])) {
-        [self setState:[[notification object] autoScales]];
+    [self setState:[[notification object] autoScales]];
+    [self setNeedsDisplay:YES];
+    if ([[self window] isVisible] && NSPointInRect([self convertPoint:[[self 
window] mouseLocationOutsideOfEventStream] fromView:nil], [self bounds]))
         [[SKNavigationToolTipWindow sharedToolTipWindow] showToolTip:[self 
currentToolTip] forView:self];
-        [self setNeedsDisplay:YES];
-    }
 }
 
 @end


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to