From cf28aa878ad812a436e25d8bae85cc4f9a43b3d4 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 4 Jun 2008 17:15:24 +0000 Subject: [PATCH] on Tiger attempt to show the group filter image at the correct size --- macosx/Controller.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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]; } -- 2.40.0