1
0
Fork 0
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:
Mitchell Livingston 2008-06-04 17:15:24 +00:00
parent c724a73fb4
commit cf28aa878a

View file

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