Revision: 14332
http://sourceforge.net/p/skim-app/code/14332
Author: hofman
Date: 2024-06-11 15:55:23 +0000 (Tue, 11 Jun 2024)
Log Message:
-----------
set accessibility label of thumbnail in setter
Modified Paths:
--------------
trunk/SKMainWindowController.m
trunk/SKSnapshotWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-06-11 15:50:25 UTC (rev 14331)
+++ trunk/SKMainWindowController.m 2024-06-11 15:55:23 UTC (rev 14332)
@@ -2332,7 +2332,6 @@
else
image = [controller placeholderThumbnailWithSize:snapshotCacheSize
scale:scale];
- [image setAccessibilityDescription:[NSString
stringWithFormat:NSLocalizedString(@"Page %@", @""), [controller pageLabel]]];
[controller setThumbnail:image];
if (isVisible == NO || openType != SKSnapshotOpenNormal)
@@ -3060,8 +3059,6 @@
NSSize newSize = [image size];
NSSize oldSize = [[controller thumbnail] size];
- [image setAccessibilityDescription:[NSString
stringWithFormat:NSLocalizedString(@"Page %@", @""), [controller pageLabel]]];
-
[controller setThumbnail:image];
[controller setUpdateDate:date];
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2024-06-11 15:50:25 UTC (rev 14331)
+++ trunk/SKSnapshotWindowController.m 2024-06-11 15:55:23 UTC (rev 14332)
@@ -384,6 +384,13 @@
}
}
+- (void)setThumbnail:(NSImage *)newThumbnail {
+ if (newThumbnail != thumbnail) {
+ thumbnail = newThumbnail;
+ [thumbnail setAccessibilityDescription:[NSString
stringWithFormat:NSLocalizedString(@"Page %@", @""), [self pageLabel]]];
+ }
+}
+
- (void)setForceOnTop:(BOOL)flag {
forceOnTop = flag;
if ([[self window] isVisible])
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