Revision: 5508
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5508&view=rev
Author:   hofman
Date:     2009-07-22 15:00:54 +0000 (Wed, 22 Jul 2009)

Log Message:
-----------
notify change of readingbar

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2009-07-22 13:16:32 UTC (rev 5507)
+++ trunk/SKPDFView.m   2009-07-22 15:00:54 UTC (rev 5508)
@@ -2288,10 +2288,14 @@
         
         if (interactionMode != SKPresentationMode) {
             if (showBar) {
+                NSMutableDictionary *userInfo = [NSMutableDictionary 
dictionaryWithObjectsAndKeys:[readingBar page], SKPDFViewOldPageKey, nil];
                 if ([self hasReadingBar] == NO)
                     [self toggleReadingBar];
                 [readingBar setPage:page];
                 [readingBar goToPageForPoint:point];
+                [self setNeedsDisplay:YES];
+                [userInfo setObject:page forKey:SKPDFViewNewPageKey];
+                [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewReadingBarDidChangeNotification object:self 
userInfo:userInfo];
             } else if (sel && ([self toolMode] == SKTextToolMode || [self 
toolMode] == SKNoteToolMode)) {
                 [self setCurrentSelection:sel];
             }


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

Reply via email to