From 64f7382d1b99fd98f23731340e25302c731551cc Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 29 Oct 2007 18:59:23 +0000 Subject: [PATCH] trunk: Leopard: Fix bug with toggling Minimal View --- NEWS | 3 ++- macosx/Controller.m | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 5efec0b28..3bf9bd2e8 100644 --- a/NEWS +++ b/NEWS @@ -2,7 +2,8 @@ NEWS file for Transmission 0.92 (2007/xx/yy) - OS X: - + Leopard: Fix bug with typing values in Inspector->Options + + Leopard: Fix bug with typing values in Inspector->Options + + Leopard: Fix bug with toggling Minimal View 0.91 (2007/10/28) - libtransmission (all platforms): diff --git a/macosx/Controller.m b/macosx/Controller.m index 7ea5fd560..591c82f28 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -30,6 +30,7 @@ #import "TorrentTableView.h" #import "CreatorWindowController.h" #import "AboutWindowController.h" +#import "NSApplicationAdditions.h" #import "NSStringAdditions.h" #import "UKKQueue.h" #import "ActionMenuSpeedToDisplayLimitTransformer.h" @@ -2011,6 +2012,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi ? [NSImage imageNamed: @"SpeedLimitButtonGraphite.png"] : [NSImage imageNamed: @"SpeedLimitButtonBlue.png"]]; } +#warning look into - (void) applySpeedLimit: (id) sender { [fPrefsController applySpeedSettings: nil]; @@ -2085,6 +2087,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi } } +#warning look into - (void) setLimitGlobalEnabled: (id) sender { [fPrefsController applySpeedSettings: nil]; @@ -2458,7 +2461,9 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi - (void) toggleSmallView: (id) sender { - BOOL makeSmall = [fDefaults boolForKey: @"SmallView"]; + BOOL makeSmall = ![fDefaults boolForKey: @"SmallView"]; + if (![NSApp isOnLeopardOrBetter]) + makeSmall != makeSmall; [fTableView setRowHeight: makeSmall ? ROW_HEIGHT_SMALL : ROW_HEIGHT_REGULAR];