1
0
Fork 0
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:
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"]; 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];
} }