Author: mlytwyn
Date: Fri Nov 11 14:32:59 2016
New Revision: 40216

URL: http://svn.gna.org/viewcvs/gnustep?rev=40216&view=rev
Log:
Use drawWithRect for tool tips

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=40216&r1=40215&r2=40216&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/GSToolTips.m      
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/GSToolTips.m      Fri Nov 
11 14:32:59 2016
@@ -157,7 +157,7 @@
       NSRect textRect = NSInsetRect(frame, 2, 2);
 
       NSDrawColorTiledRects(bounds, bounds, sides, colors, 4);
-      [_text drawInRect: textRect];
+      [_text drawWithRect: textRect options: 
NSStringDrawingUsesLineFragmentOrigin];
     }
 }
 @end
@@ -644,7 +644,6 @@
   textSize = [toolTipText size];
 
   // TESTPLANT-MAL-03092016: Merged...
-#if 0
   if (textSize.width > 300)
     {
       NSRect rect;
@@ -654,7 +653,6 @@
       // This extra pixel is needed, otherwise the last line gets cut off.
       textSize.height += 1;
     }
-#endif
 
   /* Create window just off the current mouse position
    * Constrain it to be on screen, shrinking if necessary.


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

Reply via email to