diff --git a/macosx/Controller.h b/macosx/Controller.h index 037a2da28..8bbf5468b 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -180,7 +180,7 @@ - (void) setAutoSize: (NSNotification *) notification; - (void) setWindowSizeToFit; -- (NSRect) windowFrameFor: (int) count; +- (NSRect) windowFrameForAmount: (int) amount; - (void) showMainWindow: (id) sender; - (void) linkHomepage: (id) sender; diff --git a/macosx/Controller.m b/macosx/Controller.m index 4375a006c..1c654c3eb 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -665,7 +665,7 @@ static void sleepCallBack(void * controller, io_service_t y, } NSBeginAlertSheet(title, @"Remove", @"Cancel", nil, fWindow, self, - @selector(removeSheetDidEnd:returnCode:contextInfo:), nil, dict, message); + nil, @selector(removeSheetDidEnd:returnCode:contextInfo:), dict, message); return; } } @@ -2120,7 +2120,7 @@ static void sleepCallBack(void * controller, io_service_t y, - (NSRect) windowWillUseStandardFrame: (NSWindow *) window defaultFrame: (NSRect) defaultFrame { - return [self windowFrameFor: [fFilteredTorrents count]]; + return [self windowFrameForAmount: [fFilteredTorrents count]]; } - (void) setAutoSize: (NSNotification *) notification @@ -2132,14 +2132,14 @@ static void sleepCallBack(void * controller, io_service_t y, - (void) setWindowSizeToFit { if ([fDefaults boolForKey: @"AutoSize"]) - [fWindow setFrame: [self windowFrameFor: [fTorrents count]] display: YES animate: YES]; + [fWindow setFrame: [self windowFrameForAmount: [fTorrents count]] display: YES animate: YES]; } -- (NSRect) windowFrameFor: (int) count +- (NSRect) windowFrameForAmount: (int) amount { NSRect frame = [fWindow frame]; float newHeight = frame.size.height - [fScrollView frame].size.height - + count * ([fTableView rowHeight] + [fTableView intercellSpacing].height); + + amount * ([fTableView rowHeight] + [fTableView intercellSpacing].height); float minHeight = [fWindow minSize].height; if (newHeight < minHeight) diff --git a/macosx/English.lproj/MainMenu.nib/info.nib b/macosx/English.lproj/MainMenu.nib/info.nib index 6acaeb4ca..91184950e 100644 --- a/macosx/English.lproj/MainMenu.nib/info.nib +++ b/macosx/English.lproj/MainMenu.nib/info.nib @@ -11,7 +11,7 @@ 1480 366 546 420 63 0 0 1152 842 1603 - 337 544 477 67 0 0 1152 842 + 360 371 477 67 0 0 1152 842 29 9 780 451 44 0 0 1152 842 456 @@ -31,9 +31,9 @@ 3 IBOpenObjects - 29 1041 - 1603 + 21 + 29 IBSystem Version 8J135 diff --git a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib index 0a4cb23ad..2ca77f867 100644 Binary files a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib and b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib differ