1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

nothing of significance

This commit is contained in:
Mitchell Livingston 2007-12-27 22:26:23 +00:00
parent f88eb7d771
commit 75bae87b4b
6 changed files with 10 additions and 11 deletions

View file

@ -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];

View file

@ -36,7 +36,7 @@
NSMutableDictionary * fCurrentColorDict;
}
+ (GroupsWindowController *) groupsController;
+ (GroupsWindowController *) groups;
- (int) orderValueForIndex: (int) index;
- (CTGradient *) gradientForIndex: (int) index;

View file

@ -52,7 +52,7 @@ typedef enum
@implementation GroupsWindowController
GroupsWindowController * fGroupsWindowInstance = nil;
+ (GroupsWindowController *) groupsController
+ (GroupsWindowController *) groups
{
if (!fGroupsWindowInstance)
fGroupsWindowInstance = [[GroupsWindowController alloc] init];

View file

@ -124,8 +124,8 @@
else
status = PORT_STATUS_ERROR;
[self callBackWithStatus: status];
[probeString release];
[self callBackWithStatus: status];
}
@end

View file

@ -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

View file

@ -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];
}