1. Perry Metzger
  2. growl

Commits

Peter Hosey  committed ce8b07d

Make GrowlDisplayPlugin implement initWithBundle:, not init, to match how GrowlWebKitDisplayPlugin calls up to its superclass.

  • Participants
  • Parent commits 04cd118
  • Branches default

Comments (0)

Files changed (1)

File Plugins/Displays/GrowlDisplayPlugin.m

View file
 
 @implementation GrowlDisplayPlugin
 
-- (id) init {
-	if ((self = [super init])) {
+- (id) initWithBundle:(NSBundle *)bundle {
+	if ((self = [super initWithBundle:bundle])) {
 		/*determine whether this display should enqueue notifications when a
 		 *	notification is already being displayed.
 		 */
 		BOOL queuesNotifications = NO;
 		windowControllerClass    = nil;
 
-		NSBundle *bundle = [NSBundle bundleForClass:[self class]];
 		NSString *queuesNotificationsObject = [bundle objectForInfoDictionaryKey:GrowlDisplayPluginInfoKeyUsesQueue];
 		if (queuesNotificationsObject) {
 			NSAssert4([queuesNotificationsObject respondsToSelector:@selector(boolValue)],