aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferenceController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r--Source/SPPreferenceController.m22
1 files changed, 22 insertions, 0 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m
index de17860c..cf4e0d18 100644
--- a/Source/SPPreferenceController.m
+++ b/Source/SPPreferenceController.m
@@ -708,6 +708,28 @@
#pragma mark -
#pragma mark Other
+
+- (void)setGrowlEnabled:(BOOL)value
+{
+ if (value) {
+ NSRunInformationalAlertPanel(
+ NSLocalizedString(@"growl_prefs_title", "Title for Growl Notifications Alert Dialog"),
+ NSLocalizedString(@"growl_prefs_msg", @"Message for Growl Notifications Alert Dialog"),
+ nil,
+ nil,
+ nil
+ );
+ }
+
+ [prefs setBool:[NSNumber numberWithBool:value] forKey:@"GrowlEnabled"];
+}
+
+- (BOOL)growlEnabled
+{
+ return [prefs boolForKey:@"GrowlEnabled"];
+}
+
+
// -------------------------------------------------------------------------------
// updateDefaultFavoritePopup:
//