Revision: 16802
http://sourceforge.net/p/skim-app/code/16802
Author: hofman
Date: 2026-11-24 15:04:18 +0000 (Tue, 24 Nov 2026)
Log Message:
-----------
new hidden preference for the auto hide time interval of preview tool tips
Modified Paths:
--------------
trunk/SKImageToolTipWindow.m
Modified: trunk/SKImageToolTipWindow.m
===================================================================
--- trunk/SKImageToolTipWindow.m 2026-11-24 09:45:30 UTC (rev 16801)
+++ trunk/SKImageToolTipWindow.m 2026-11-24 15:04:18 UTC (rev 16802)
@@ -55,6 +55,7 @@
#define DEFAULT_SCALE -2.0
#define SKToolTipScaleKey @"SKToolTipScale"
+#define SKToolTipAutoHideTimeIntervalKey @"SKToolTipAutoHideTimeInterval"
@implementation SKImageToolTipWindow
@@ -72,6 +73,7 @@
if (sharedToolTipWindow) NSLog(@"Attempt to allocate second instance of
%@", self);
self = [super initWithContentRect:contentRect];
if (self) {
+ NSNumber *timeInterval = [[NSUserDefaults standardUserDefaults]
objectForKey:SKToolTipAutoHideTimeIntervalKey];
[self setHidesOnDeactivate:NO];
[self setIgnoresMouseEvents:YES];
[self setBackgroundColor:[NSColor whiteColor]];
@@ -79,7 +81,7 @@
[self setHasShadow:YES];
[self setLevel:WINDOW_LEVEL];
[self setDefaultAlphaValue:ALPHA_VALUE];
- [self setAutoHideTimeInterval:AUTO_HIDE_TIME_INTERVAL];
+ [self setAutoHideTimeInterval:timeInterval ? [timeInterval
doubleValue] : AUTO_HIDE_TIME_INTERVAL];
context = nil;
point = NSZeroPoint;
image = nil;
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