Changeset 3364
- Timestamp:
- Oct 11, 2007, 3:52:35 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEWS
r3353 r3364 13 13 + Inspector can be resized vertically in Peers and Files tabs 14 14 + Optimizations to decrease memory usage 15 + Sort and filter by tracker 15 16 + Various smaller interface additions and improvements 16 17 - GTK: -
trunk/macosx/FileOutlineView.m
r3083 r3364 115 115 NSIndexSet * indexes = [item objectForKey: @"Indexes"]; 116 116 117 if ([torrent checkForFiles: indexes] == NSOffState) 118 [fNormalColor set]; 119 else 117 if ([torrent checkForFiles: indexes] != NSOffState) 120 118 { 121 119 NSSet * priorities = [torrent filePrioritiesForIndexes: indexes]; 122 120 int count = [priorities count]; 123 if (count == 0) 124 [fNormalColor set]; 125 else if (count > 1) 126 [fMixedPriorityColor set]; 127 else 121 if (count > 0) 128 122 { 129 int priority = [[priorities anyObject] intValue]; 130 if (priority == TR_PRI_LOW) 131 [fLowPriorityColor set]; 132 else if (priority == TR_PRI_HIGH) 133 [fHighPriorityColor set]; 123 BOOL custom = YES; 124 if (count > 1) 125 [fMixedPriorityColor set]; 134 126 else 135 [fNormalColor set]; 127 { 128 switch ([[priorities anyObject] intValue]) 129 { 130 case TR_PRI_LOW: 131 [fLowPriorityColor set]; 132 break; 133 case TR_PRI_HIGH: 134 [fHighPriorityColor set]; 135 break; 136 default: 137 custom = NO; 138 } 139 } 140 141 if (custom) 142 { 143 NSRect rect = [self rectOfRow: row]; 144 rect.size.height -= 1.0; 145 146 NSRectFill(rect); 147 } 136 148 } 137 149 } 138 139 NSRect rect = [self rectOfRow: row];140 rect.size.height -= 1.0;141 142 NSRectFill(rect);143 150 } 144 151
Note: See TracChangeset
for help on using the changeset viewer.