mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 11:31:02 +00:00
Select different tooltip font size for 64 bit - there MUST be a bug somewhere in GNUstep related to drawing as it screws up certain tooltip window/view drawing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40250 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
61e111f14f
commit
fe636303ee
1 changed files with 9 additions and 7 deletions
|
@ -370,6 +370,8 @@ static BOOL restoreMouseMoved;
|
|||
selector: @selector(_timedOut:)
|
||||
userInfo: toolTipString
|
||||
repeats: YES];
|
||||
// WHy is this here...as it's essentially a no-op...timer has already been
|
||||
// scheduled in the RunLoop in the previous line...
|
||||
[[NSRunLoop currentRunLoop] addTimer: timer forMode: NSModalPanelRunLoopMode];
|
||||
timedObject = self;
|
||||
timedTag = [theEvent trackingNumber];
|
||||
|
@ -627,20 +629,20 @@ static BOOL restoreMouseMoved;
|
|||
[self _endDisplay];
|
||||
}
|
||||
|
||||
size = [[NSUserDefaults standardUserDefaults]
|
||||
floatForKey: @"NSToolTipsFontSize"];
|
||||
size = [[NSUserDefaults standardUserDefaults] floatForKey: @"NSToolTipsFontSize"];
|
||||
|
||||
if (size <= 0)
|
||||
{
|
||||
#if defined(__linux__) && defined(__x86_64__)
|
||||
size = 11.0;
|
||||
#else
|
||||
size = 10.0;
|
||||
#endif
|
||||
}
|
||||
|
||||
attributes = [NSMutableDictionary dictionary];
|
||||
[attributes setObject: [NSFont toolTipsFontOfSize: size]
|
||||
forKey: NSFontAttributeName];
|
||||
toolTipText =
|
||||
[[NSAttributedString alloc] initWithString: toolTipString
|
||||
attributes: attributes];
|
||||
[attributes setObject: [NSFont toolTipsFontOfSize: size] forKey: NSFontAttributeName];
|
||||
toolTipText = [[NSAttributedString alloc] initWithString: toolTipString attributes: attributes];
|
||||
textSize = [toolTipText size];
|
||||
|
||||
// TESTPLANT-MAL-03092016: Merged...
|
||||
|
|
Loading…
Reference in a new issue