Revision: 14272
http://sourceforge.net/p/skim-app/code/14272
Author: hofman
Date: 2024-05-29 14:27:58 +0000 (Wed, 29 May 2024)
Log Message:
-----------
use block argument
Modified Paths:
--------------
trunk/SKBookmarkController.m
trunk/SKMainToolbarController.m
Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m 2024-05-29 14:22:15 UTC (rev 14271)
+++ trunk/SKBookmarkController.m 2024-05-29 14:27:58 UTC (rev 14272)
@@ -129,9 +129,9 @@
SKBookmarksIdentifier = [[[NSBundle mainBundle] bundleIdentifier]
stringByAppendingString:@".bookmarks"];
static NSImage *separatorImage = nil;
- separatorImage = [NSImage imageWithSize:NSMakeSize(2.0, 2.0)
drawingHandler:^(NSRect r){
+ separatorImage = [NSImage imageWithSize:NSMakeSize(2.0, 2.0)
drawingHandler:^(NSRect dstRect){
[[NSColor gridColor] setFill];
- [NSBezierPath fillRect:NSMakeRect(0.0, 0.0, 2.0, 2.0)];
+ [NSBezierPath fillRect:dstRect];
return YES;
}];
[separatorImage setName:SKImageNameSeparator];
Modified: trunk/SKMainToolbarController.m
===================================================================
--- trunk/SKMainToolbarController.m 2024-05-29 14:22:15 UTC (rev 14271)
+++ trunk/SKMainToolbarController.m 2024-05-29 14:27:58 UTC (rev 14272)
@@ -1047,8 +1047,8 @@
NSSize size = NSMakeSize(16.0, 16.0);
for (NSColor *color in [NSColor favoriteColors]) {
NSMenuItem *item;
- NSImage *image = [NSImage imageWithSize:size drawingHandler:^(NSRect
r){
- [color drawSwatchInRoundedRect:(NSRect){NSZeroPoint, size}];
+ NSImage *image = [NSImage imageWithSize:size drawingHandler:^(NSRect
dstRect){
+ [color drawSwatchInRoundedRect:dstRect];
return YES;
}];
[image setAccessibilityDescription:[color accessibilityValue]];
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