mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
nothing of significance
This commit is contained in:
parent
f88eb7d771
commit
75bae87b4b
6 changed files with 10 additions and 11 deletions
|
@ -2065,7 +2065,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
|
||||
- (void) showGroups: (id) sender
|
||||
{
|
||||
[[GroupsWindowController groupsController] showWindow: self];
|
||||
[[GroupsWindowController groups] showWindow: self];
|
||||
}
|
||||
|
||||
- (void) menuNeedsUpdate: (NSMenu *) menu
|
||||
|
@ -2076,8 +2076,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
for (i = [menu numberOfItems]-1 - keep; i >= 0; i--)
|
||||
[menu removeItemAtIndex: i];
|
||||
|
||||
NSMenu * groupMenu = [[GroupsWindowController groupsController] groupMenuWithTarget: self action: @selector(setGroup:)
|
||||
isSmall: NO];
|
||||
NSMenu * groupMenu = [[GroupsWindowController groups] groupMenuWithTarget: self action: @selector(setGroup:) isSmall: NO];
|
||||
[menu appendItemsFromMenu: groupMenu atIndexes: [NSIndexSet indexSetWithIndexesInRange:
|
||||
NSMakeRange(0, [groupMenu numberOfItems])] atBottom: NO];
|
||||
}
|
||||
|
@ -2087,7 +2086,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
for (i = [menu numberOfItems]-1; i >= 3; i--)
|
||||
[menu removeItemAtIndex: i];
|
||||
|
||||
NSMenu * groupMenu = [[GroupsWindowController groupsController] groupMenuWithTarget: self action: @selector(setGroupFilter:)
|
||||
NSMenu * groupMenu = [[GroupsWindowController groups] groupMenuWithTarget: self action: @selector(setGroupFilter:)
|
||||
isSmall: YES];
|
||||
[menu appendItemsFromMenu: groupMenu atIndexes: [NSIndexSet indexSetWithIndexesInRange:
|
||||
NSMakeRange(0, [groupMenu numberOfItems])] atBottom: YES];
|
||||
|
@ -2132,9 +2131,9 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
toolTip = NSLocalizedString(@"Group: No Label", "Groups -> Button");
|
||||
break;
|
||||
default:
|
||||
icon = [[GroupsWindowController groupsController] imageForIndex: index isSmall: YES];
|
||||
icon = [[GroupsWindowController groups] imageForIndex: index isSmall: YES];
|
||||
toolTip = [NSLocalizedString(@"Group: ", "Groups -> Button") stringByAppendingString:
|
||||
[[GroupsWindowController groupsController] nameForIndex: index]];
|
||||
[[GroupsWindowController groups] nameForIndex: index]];
|
||||
}
|
||||
|
||||
[[fGroupFilterMenu itemAtIndex: 0] setImage: icon];
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
NSMutableDictionary * fCurrentColorDict;
|
||||
}
|
||||
|
||||
+ (GroupsWindowController *) groupsController;
|
||||
+ (GroupsWindowController *) groups;
|
||||
|
||||
- (int) orderValueForIndex: (int) index;
|
||||
- (CTGradient *) gradientForIndex: (int) index;
|
||||
|
|
|
@ -52,7 +52,7 @@ typedef enum
|
|||
@implementation GroupsWindowController
|
||||
|
||||
GroupsWindowController * fGroupsWindowInstance = nil;
|
||||
+ (GroupsWindowController *) groupsController
|
||||
+ (GroupsWindowController *) groups
|
||||
{
|
||||
if (!fGroupsWindowInstance)
|
||||
fGroupsWindowInstance = [[GroupsWindowController alloc] init];
|
||||
|
|
|
@ -124,8 +124,8 @@
|
|||
else
|
||||
status = PORT_STATUS_ERROR;
|
||||
|
||||
[self callBackWithStatus: status];
|
||||
[probeString release];
|
||||
[self callBackWithStatus: status];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -1201,7 +1201,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
|
||||
- (int) groupOrderValue
|
||||
{
|
||||
return [[GroupsWindowController groupsController] orderValueForIndex: fGroupValue];
|
||||
return [[GroupsWindowController groups] orderValueForIndex: fGroupValue];
|
||||
}
|
||||
|
||||
- (void) checkGroupValueForRemoval: (NSNotification *) notification
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
groupRect.origin.y--;
|
||||
}
|
||||
|
||||
[[[GroupsWindowController groupsController] gradientForIndex: groupValue] fillBezierPath:
|
||||
[[[GroupsWindowController groups] gradientForIndex: groupValue] fillBezierPath:
|
||||
[NSBezierPath bezierPathWithRoundedRect: groupRect radius: 6.0] angle: 90.0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue