Changeset 9422


Ignore:
Timestamp:
Oct 27, 2009, 11:23:02 PM (13 years ago)
Author:
livings124
Message:

per-torrent action menu's priority images might have been flipped on 10.6

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9406 r9422  
    19801980        {
    19811981            NSSortDescriptor * dateDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"dateAdded" ascending: asc] autorelease];
    1982        
     1982           
    19831983            descriptors = [[NSArray alloc] initWithObjects: dateDescriptor, nameDescriptor, nil];
    19841984        }
  • trunk/macosx/FilePriorityCell.m

    r9012 r9422  
    148148        else
    149149        {
     150            image = [image copy];
    150151            [image setFlipped: YES];
    151152            [image drawInRect: imageRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
  • trunk/macosx/TorrentCell.m

    r9342 r9422  
    483483        NSImage * priorityImage = [torrent priority] == TR_PRI_HIGH ? [NSImage imageNamed: @"PriorityHigh.png"]
    484484                                                                    : [NSImage imageNamed: @"PriorityLow.png"];
     485        priorityImage = [NSApp isOnSnowLeopardOrBetter] ? [priorityImage retain] : [priorityImage copy]; //take line out completely when 10.6-only
    485486       
    486487        NSRect priorityRect = NSMakeRect(NSMaxX(titleRect) + PADDING_BETWEEN_TITLE_AND_PRIORITY,
     
    489490       
    490491        [self drawImage: priorityImage inRect: priorityRect];
     492        [priorityImage release];
    491493    }
    492494   
Note: See TracChangeset for help on using the changeset viewer.