Author: mlytwyn
Date: Thu Dec  1 18:49:43 2016
New Revision: 40250

URL: http://svn.gna.org/viewcvs/gnustep?rev=40250&view=rev
Log:
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

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/GSToolTips.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/GSToolTips.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/GSToolTips.m?rev=40250&r1=40249&r2=40250&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/GSToolTips.m      
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/GSToolTips.m      Thu Dec 
 1 18:49:43 2016
@@ -370,6 +370,8 @@
                                          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 @@
       [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...


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to