From c759220a7fcd824a7a842a468c660558fa1a1cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Sat, 30 Oct 2010 09:35:14 +0200 Subject: Register default Growl notifications correctly. Release-Notes: When registering with Growl, we now request incoming message popups to be enabled by default. diff --git a/SwifTools/Notifier/GrowlNotifier.cpp b/SwifTools/Notifier/GrowlNotifier.cpp index f373f1f..8b5920f 100644 --- a/SwifTools/Notifier/GrowlNotifier.cpp +++ b/SwifTools/Notifier/GrowlNotifier.cpp @@ -57,7 +57,7 @@ GrowlNotifier::GrowlNotifier(const String& name) { // Default Notifications CFMutableArrayRef defaultNotifications = CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks); foreach(Type type, getDefaultTypes()) { - CFArrayAppendValue(allNotifications, SWIFTEN_STRING_TO_CFSTRING(typeToString(type))); + CFArrayAppendValue(defaultNotifications, SWIFTEN_STRING_TO_CFSTRING(typeToString(type))); } // Initialize delegate diff --git a/SwifTools/Notifier/GrowlNotifier.h b/SwifTools/Notifier/GrowlNotifier.h index 5d618e6..f7c4260 100644 --- a/SwifTools/Notifier/GrowlNotifier.h +++ b/SwifTools/Notifier/GrowlNotifier.h @@ -18,7 +18,6 @@ namespace Swift { * - Must be part a bundle. * - The Carbon/Cocoa application loop must be running (e.g. through QApplication) * such that notifications are coming through. - * TODO: Find out what the easiest way is to do this without a QApplication. */ class GrowlNotifier : public Notifier { public: -- cgit v0.10.2-6-g49f6