X-Git-Url: http://git.ithinksw.org/GrowlITTSW.git/blobdiff_plain/1355f099f7c9b800fe305e04ae4fbe89e440c0d7..HEAD:/GrowlITTSWDisplay.m diff --git a/GrowlITTSWDisplay.m b/GrowlITTSWDisplay.m index bbd7515..d43a5b5 100644 --- a/GrowlITTSWDisplay.m +++ b/GrowlITTSWDisplay.m @@ -12,11 +12,12 @@ [super dealloc]; } -/* - (NSPreferencePane *) preferencePane { - if (!preferencePane) - preferencePane = [[GrowlITTSWPrefs alloc] initWithBundle:[NSBundle bundleWithIdentifier:@"com.ithinksw.growl.ittsw"]]; +- (NSPreferencePane *) preferencePane { + if (!preferencePane) { + preferencePane = [[GrowlITTSWPrefs alloc] initWithBundle:[NSBundle bundleWithIdentifier:@"com.ithinksw.growl-ittsw"]]; + } return preferencePane; -}*/ +} //we implement requiresPositioning entirely because it was added as a requirement for doing 1.1 plugins, however //we don't really care if positioning is required or not, because we are only ever in the menubar. @@ -30,13 +31,7 @@ NSString *title = [dict objectForKey:GROWL_NOTIFICATION_TITLE]; NSString *desc = [dict objectForKey:GROWL_NOTIFICATION_DESCRIPTION]; NSImage *image = [dict objectForKey:GROWL_NOTIFICATION_ICON]; - NSString *text; - if (desc) { - text = [title stringByAppendingFormat:@"\n%@", desc]; - } else { - text = title; - } - [[GrowlITTSWController sharedController] showWindowWithText:text image:image]; + [[GrowlITTSWController sharedController] showWindowWithTitle:title desc:desc image:image]; } @end