Revision: 7060 http://skim-app.svn.sourceforge.net/skim-app/?rev=7060&view=rev Author: hofman Date: 2011-01-08 00:04:00 +0000 (Sat, 08 Jan 2011)
Log Message: ----------- draw locked badge in placeholder thumbnail page for locked PDFs Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2011-01-07 20:16:44 UTC (rev 7059) +++ trunk/SKMainWindowController.m 2011-01-08 00:04:00 UTC (rev 7060) @@ -2484,6 +2484,8 @@ CGFloat width = 0.8 * fmin(NSWidth(imgRect), NSHeight(imgRect)); imgRect = NSInsetRect(imgRect, 0.5 * (NSWidth(imgRect) - width), 0.5 * (NSHeight(imgRect) - width)); [[NSImage imageNamed:@"NSApplicationIcon"] drawInRect:imgRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:0.5]; + if ([[pdfView document] isLocked]) + [[[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kLockedBadgeIcon)] drawInRect:imgRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:0.5]; [image unlockFocus]; for (i = 0; i < count; i++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit