diff --git a/macosx/Controller.m b/macosx/Controller.m index 595642b72..815584c85 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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]; }