Revision: 5060
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5060&view=rev
Author:   hofman
Date:     2008-12-15 00:47:27 +0000 (Mon, 15 Dec 2008)

Log Message:
-----------
fix update of full screen navigation tool tip

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

Modified: trunk/SKNavigationWindow.h
===================================================================
--- trunk/SKNavigationWindow.h  2008-12-14 23:38:16 UTC (rev 5059)
+++ trunk/SKNavigationWindow.h  2008-12-15 00:47:27 UTC (rev 5060)
@@ -42,7 +42,7 @@
 @class PDFView, SKNavigationToolTipView, SKNavigationButton;
 
 @interface SKNavigationWindow : SKAnimatedBorderlessWindow {
-    NSButton *zoomButton;
+    SKNavigationButton *zoomButton;
 }
 - (id)initWithPDFView:(PDFView *)pdfView;
 - (void)moveToScreen:(NSScreen *)screen;

Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m  2008-12-14 23:38:16 UTC (rev 5059)
+++ trunk/SKNavigationWindow.m  2008-12-15 00:47:27 UTC (rev 5060)
@@ -145,6 +145,12 @@
 
 - (void)handleScaleChangedNotification:(NSNotification *)notification {
     [zoomButton setState:[[notification object] autoScales] ? NSOnState : 
NSOffState];
+    if ([self isVisible]) {
+        [zoomButton setNeedsDisplay:YES];
+        SKNavigationToolTipWindow *toolTipWindow = [SKNavigationToolTipWindow 
sharedToolTipWindow];
+        if ([[toolTipWindow view] isEqual:zoomButton])
+            [toolTipWindow showToolTip:[zoomButton currentToolTip] 
forView:zoomButton];
+    }
 }
 
 @end
@@ -357,17 +363,6 @@
     [super viewDidMoveToWindow];
 }
 
-- (void)setState:(int)state {
-    BOOL changed = state != [self state];
-    [super setState:state];
-    if (changed && [[self window] isVisible]) {
-        if ([self alternatePath])
-            [self setNeedsDisplay:YES];
-        if (alternateToolTip && NSPointInRect([self convertPoint:[[self 
window] mouseLocationOutsideOfEventStream] fromView:nil], [self bounds]))
-            [[SKNavigationToolTipWindow sharedToolTipWindow] showToolTip:[self 
currentToolTip] forView:self];
-    }
-}
-
 #pragma mark Button paths
 
 + (NSBezierPath *)nextButtonPath {


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

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to