Revision: 13953
http://sourceforge.net/p/skim-app/code/13953
Author: hofman
Date: 2023-12-21 23:23:21 +0000 (Thu, 21 Dec 2023)
Log Message:
-----------
no need to set label twice
Modified Paths:
--------------
trunk/SKThumbnailView.m
Modified: trunk/SKThumbnailView.m
===================================================================
--- trunk/SKThumbnailView.m 2023-12-21 15:47:48 UTC (rev 13952)
+++ trunk/SKThumbnailView.m 2023-12-21 23:23:21 UTC (rev 13953)
@@ -245,7 +245,6 @@
[thumbnail removeObserver:self forKeyPath:IMAGE_KEY
context:&SKThumbnailViewThumbnailObservationContext];
[thumbnail removeObserver:self forKeyPath:LABEL_KEY
context:&SKThumbnailViewThumbnailObservationContext];
thumbnail = newThumbnail;
- [labelView setObjectValue:[thumbnail label]];
[thumbnail addObserver:self forKeyPath:IMAGE_KEY
options:NSKeyValueObservingOptionInitial
context:&SKThumbnailViewThumbnailObservationContext];
[thumbnail addObserver:self forKeyPath:LABEL_KEY
options:NSKeyValueObservingOptionInitial
context:&SKThumbnailViewThumbnailObservationContext];
if ([self isSelected] || [self highlightLevel] > 0)
@@ -543,11 +542,6 @@
}
}
-- (void)handleMenuDidEndTracking:(NSNotification *)notification {
- [[NSNotificationCenter defaultCenter] removeObserver:self
name:NSMenuDidEndTrackingNotification object:[notification object]];
- [self applyMenuHighlighted:NO];
-}
-
- (void)willOpenMenu:(NSMenu *)menu
withEvent:(NSEvent *)event {
[self applyMenuHighlighted:YES];
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