mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
on Tiger attempt to show the group filter image at the correct size
This commit is contained in:
parent
c724a73fb4
commit
cf28aa878a
1 changed files with 9 additions and 1 deletions
|
@ -2263,7 +2263,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
{
|
||||
int groupIndex = [fDefaults integerForKey: @"FilterGroup"];
|
||||
|
||||
NSImage * icon = nil;
|
||||
NSImage * icon;
|
||||
NSString * toolTip;
|
||||
switch (groupIndex)
|
||||
{
|
||||
|
@ -2282,6 +2282,14 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
[[GroupsController groups] nameForIndex: groupIndex]];
|
||||
}
|
||||
|
||||
|
||||
if (![NSApp isOnLeopardOrBetter])
|
||||
{
|
||||
icon = [[icon copy] autorelease];
|
||||
[icon setScalesWhenResized: YES];
|
||||
[icon setSize: NSMakeSize(12.0, 12.0)];
|
||||
}
|
||||
|
||||
[[fGroupFilterMenu itemAtIndex: 0] setImage: icon];
|
||||
[fGroupsButton setToolTip: toolTip];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue