diff options
Diffstat (limited to 'CustomQuery.m')
-rw-r--r-- | CustomQuery.m | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/CustomQuery.m b/CustomQuery.m index dd85b4b4..2dd43fc4 100644 --- a/CustomQuery.m +++ b/CustomQuery.m @@ -24,8 +24,7 @@ #import "CustomQuery.h" #import "TableDump.h" -#import <Growl/Growl.h> - +#import "SPGrowlController.h" @implementation CustomQuery @@ -140,15 +139,10 @@ sets the tableView columns corresponding to the mysql-result //query finished [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self]; - // Query Finished Growl Notification - [GrowlApplicationBridge notifyWithTitle:@"Query Finished" - description:[NSString stringWithFormat:NSLocalizedString(@"%@",@"description for query finished growl notification"), [errorText stringValue]] - notificationName:@"Query Finished" - iconData:nil - priority:0 - isSticky:NO - clickContext:nil - ]; + // Query finished Growl notification + [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Query Finished" + description:[NSString stringWithFormat:NSLocalizedString(@"%@",@"description for query finished growl notification"), [errorText stringValue]] + notificationName:@"Query Finished"]; return; } @@ -194,15 +188,10 @@ sets the tableView columns corresponding to the mysql-result //query finished [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self]; - // Query Finished Growl Notification - [GrowlApplicationBridge notifyWithTitle:@"Query Finished" - description:[NSString stringWithFormat:NSLocalizedString(@"%@",@"description for query finished growl notification"), [errorText stringValue]] - notificationName:@"Query Finished" - iconData:nil - priority:0 - isSticky:NO - clickContext:nil - ]; + // Query finished Growl notification + [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Query Finished" + description:[NSString stringWithFormat:NSLocalizedString(@"%@",@"description for query finished growl notification"), [errorText stringValue]] + notificationName:@"Query Finished"]; } - (IBAction)chooseQueryFavorite:(id)sender |