mirror of
https://github.com/transmission/transmission
synced 2024-12-27 10:07:40 +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"];
|
int groupIndex = [fDefaults integerForKey: @"FilterGroup"];
|
||||||
|
|
||||||
NSImage * icon = nil;
|
NSImage * icon;
|
||||||
NSString * toolTip;
|
NSString * toolTip;
|
||||||
switch (groupIndex)
|
switch (groupIndex)
|
||||||
{
|
{
|
||||||
|
@ -2282,6 +2282,14 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
[[GroupsController groups] nameForIndex: groupIndex]];
|
[[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];
|
[[fGroupFilterMenu itemAtIndex: 0] setImage: icon];
|
||||||
[fGroupsButton setToolTip: toolTip];
|
[fGroupsButton setToolTip: toolTip];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue