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

This commit is contained in:
Mitchell Livingston
2009-10-27 23:23:02 +00:00
parent 22e3f1175a
commit 7220f6fe83
3 changed files with 4 additions and 1 deletions

View File

@@ -1979,7 +1979,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
else if ([sortType isEqualToString: SORT_DATE])
{
NSSortDescriptor * dateDescriptor = [[[NSSortDescriptor alloc] initWithKey: @"dateAdded" ascending: asc] autorelease];
descriptors = [[NSArray alloc] initWithObjects: dateDescriptor, nameDescriptor, nil];
}
else

View File

@@ -147,6 +147,7 @@
respectFlipped: YES hints: nil];
else
{
image = [image copy];
[image setFlipped: YES];
[image drawInRect: imageRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
}

View File

@@ -482,12 +482,14 @@
{
NSImage * priorityImage = [torrent priority] == TR_PRI_HIGH ? [NSImage imageNamed: @"PriorityHigh.png"]
: [NSImage imageNamed: @"PriorityLow.png"];
priorityImage = [NSApp isOnSnowLeopardOrBetter] ? [priorityImage retain] : [priorityImage copy]; //take line out completely when 10.6-only
NSRect priorityRect = NSMakeRect(NSMaxX(titleRect) + PADDING_BETWEEN_TITLE_AND_PRIORITY,
titleRect.origin.y - (PRIORITY_ICON_HEIGHT - titleRect.size.height) / 2.0,
PRIORITY_ICON_WIDTH, PRIORITY_ICON_HEIGHT);
[self drawImage: priorityImage inRect: priorityRect];
[priorityImage release];
}
//progress