mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
per-torrent action menu's priority images might have been flipped on 10.6
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user