1.1 --- a/Source/ESStatusAdvancedPreferences.m Sun May 24 00:16:25 2009 -0400
1.2 +++ b/Source/ESStatusAdvancedPreferences.m Tue Jun 02 17:22:19 2009 -0400
1.3 @@ -27,41 +27,12 @@
1.4 return [NSImage imageNamed:@"pref-status" forClass:[AIPreferenceWindowController class]];
1.5 }
1.6
1.7 -//Called in response to all preference controls, applies new settings
1.8 -- (IBAction)changePreference:(id)sender
1.9 -{
1.10 - if (sender == matrix_quitConfirmation || sender == checkBox_quitConfirmEnabled) {
1.11 - [self configureControlDimming];
1.12 - }
1.13 -}
1.14 -
1.15 -- (void)configureControlDimming
1.16 -{
1.17 - BOOL confirmQuitEnabled = ([checkBox_quitConfirmEnabled state] == NSOnState);
1.18 - BOOL enableSpecificConfirmations = (confirmQuitEnabled && [[matrix_quitConfirmation selectedCell] tag] == AIQuitConfirmSelective);
1.19 -
1.20 - [matrix_quitConfirmation setEnabled:confirmQuitEnabled];
1.21 - [checkBox_quitConfirmFT setEnabled:enableSpecificConfirmations];
1.22 - [checkBox_quitConfirmUnread setEnabled:enableSpecificConfirmations];
1.23 - [checkBox_quitConfirmOpenChats setEnabled:enableSpecificConfirmations];
1.24 -}
1.25 -
1.26 //Configure the preference view
1.27 - (void)viewDidLoad
1.28 -{ [label_statusWindow setLocalizedString:AILocalizedString(@"Away Status Window", nil)];
1.29 +{
1.30 + [label_statusWindow setLocalizedString:AILocalizedString(@"Away Status Window", nil)];
1.31 [checkBox_statusWindowHideInBackground setLocalizedString:AILocalizedString(@"Hide the status window when Adium is not active", nil)];
1.32 [checkBox_statusWindowAlwaysOnTop setLocalizedString:AILocalizedString(@"Show the status window above other windows", nil)];
1.33 -
1.34 - [label_quitConfirmation setLocalizedString:AILocalizedString(@"Quit Confirmation", @"Preference")];
1.35 - [checkBox_quitConfirmEnabled setLocalizedString:AILocalizedString(@"Confirm before quitting Adium", @"Quit Confirmation preference")];
1.36 - [checkBox_quitConfirmFT setLocalizedString:AILocalizedString(@"File transfers are in progress", @"Quit Confirmation preference")];
1.37 - [checkBox_quitConfirmUnread setLocalizedString:AILocalizedString(@"There are unread messages", @"Quit Confirmation preference")];
1.38 - [checkBox_quitConfirmOpenChats setLocalizedString:AILocalizedString(@"There are open chat windows", @"Quit Confirmation preference")];
1.39 -
1.40 - [[matrix_quitConfirmation cellWithTag:AIQuitConfirmAlways] setTitle:AILocalizedString(@"Always",@"Quit Confirmation preference")];
1.41 - [[matrix_quitConfirmation cellWithTag:AIQuitConfirmSelective] setTitle:[AILocalizedString(@"Only when",@"Quit Confirmation preference") stringByAppendingEllipsis]];
1.42 -
1.43 - [self configureControlDimming];
1.44
1.45 [super viewDidLoad];
1.46 }