~hendrik-grewe/transmission/private-patch

« back to all changes in this revision

Viewing changes to macosx/TorrentCell.m

  • Committer: mikedld
  • Date: 2016-01-07 17:21:12 UTC
  • Revision ID: svn-v4:f4695dd4-2c0a-0410-b89c-da849a56a58e:trunk:14665
#6050: Get rid of calls to deprecated convertScreenToBase: API (patch by mattrajca)

Show diffs side-by-side

added added

removed removed

Lines of Context:
525
525
    NSAssert([titleString size].width >= NSWidth(realRect), @"Full rect width should not be less than the used title rect width!");
526
526
    
527
527
    if ([titleString size].width > NSWidth(realRect)
528
 
        && NSMouseInRect([view convertPoint: [[view window] convertScreenToBase: [NSEvent mouseLocation]] fromView: nil], realRect, [view isFlipped]))
 
528
        && NSMouseInRect([view convertPoint: [[view window] mouseLocationOutsideOfEventStream] fromView: nil], realRect, [view isFlipped]))
529
529
    {
530
530
        realRect.size.width = [titleString size].width;
531
531
        return NSInsetRect(realRect, -PADDING_EXPANSION_FRAME, -PADDING_EXPANSION_FRAME);