Changeset 9800
- Timestamp:
- Dec 19, 2009, 7:17:09 PM (12 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/FilePriorityCell.m
r9423 r9800 139 139 140 140 NSSize imageSize = [image size]; 141 NSRect imageRect = NSMakeRect(cellFrame.origin.x + (cellFrame.size.width - imageSize.width) * 0.5, 142 cellFrame.origin.y + (cellFrame.size.height - imageSize.height) * 0.5, 141 NSRect imageRect = NSMakeRect(NSMidX(cellFrame) - imageSize.width * 0.5, NSMidY(cellFrame) - imageSize.height * 0.5, 143 142 imageSize.width, imageSize.height); 144 143 -
trunk/macosx/GroupsPrefsController.m
r9790 r9800 36 36 37 37 - (void) updateSelectedGroup; 38 - (void) refreshCustomLocation ;38 - (void) refreshCustomLocationWithSingleGroup; 39 39 40 40 @end … … 319 319 [fSelectedColorNameField setEnabled: YES]; 320 320 321 [self refreshCustomLocation ];321 [self refreshCustomLocationWithSingleGroup]; 322 322 323 323 [fAutoAssignRulesEnableCheck setState: [[GroupsController groups] usesAutoAssignRulesForIndex: index]]; … … 338 338 } 339 339 340 - (void) refreshCustomLocation 340 - (void) refreshCustomLocationWithSingleGroup 341 341 { 342 342 const NSInteger index = [[GroupsController groups] indexForRow: [fTableView selectedRow]]; 343 343 344 [fCustomLocationEnableCheck setState: [[GroupsController groups] usesCustomDownloadLocationForIndex: index]]; 344 const BOOL hasCustomLocation = [[GroupsController groups] usesCustomDownloadLocationForIndex: index]; 345 [fCustomLocationEnableCheck setState: hasCustomLocation]; 345 346 [fCustomLocationEnableCheck setEnabled: YES]; 346 [fCustomLocationPopUp setEnabled: [fCustomLocationEnableCheck state] == NSOnState];347 348 if ([[GroupsController groups] customDownloadLocationForIndex: index])349 {350 NSString * location = [[GroupsController groups] customDownloadLocationForIndex: index];347 [fCustomLocationPopUp setEnabled: hasCustomLocation]; 348 349 NSString * location = [[GroupsController groups] customDownloadLocationForIndex: index]; 350 if (location) 351 { 351 352 ExpandedPathToPathTransformer * pathTransformer = [[[ExpandedPathToPathTransformer alloc] init] autorelease]; 352 353 [[fCustomLocationPopUp itemAtIndex: 0] setTitle: [pathTransformer transformedValue: location]];
Note: See TracChangeset
for help on using the changeset viewer.