diff options
author | rowanbeentje <rowan@beent.je> | 2009-10-03 21:47:55 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-10-03 21:47:55 +0000 |
commit | d794d105545e92a75bdaf697580ee7f12b566531 (patch) | |
tree | 18a8cf4bc60380284d28b151eb89357cf0df76bd /Source/TableDocument.m | |
parent | 7abd1679730327d15a33cc516e84e0e368f53696 (diff) | |
download | sequelpro-d794d105545e92a75bdaf697580ee7f12b566531.tar.gz sequelpro-d794d105545e92a75bdaf697580ee7f12b566531.tar.bz2 sequelpro-d794d105545e92a75bdaf697580ee7f12b566531.zip |
Improve Growl interaction to reduce general Growl spammage and improve functionality:
- Growls are now only shown by default if they are not fired from the frontmost window
- Long-running tasks (>3 secs) will still Growl
- Clicking on a Growl will now bring the associated window to the front
This addresses the original concerns of Issue #98.
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 2b710737..bd57a7ab 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -608,6 +608,7 @@ // Connected Growl notification [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Connected" description:[NSString stringWithFormat:NSLocalizedString(@"Connected to %@",@"description for connected growl notification"), [tableWindow title]] + window:tableWindow notificationName:@"Connected"]; @@ -1450,6 +1451,7 @@ // Table syntax copied Growl notification [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Syntax Copied" description:[NSString stringWithFormat:NSLocalizedString(@"Syntax for %@ table copied",@"description for table syntax copied growl notification"), [self table]] + window:tableWindow notificationName:@"Syntax Copied"]; } @@ -1762,6 +1764,7 @@ // Table syntax copied Growl notification [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Syntax Copied" description:[NSString stringWithFormat:NSLocalizedString(@"Syntax for %@ table copied", @"description for table syntax copied growl notification"), [self table]] + window:tableWindow notificationName:@"Syntax Copied"]; } } @@ -1895,9 +1898,10 @@ [mySQLConnection disconnect]; // Disconnected Growl notification - [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Disconnected" - description:[NSString stringWithFormat:NSLocalizedString(@"Disconnected from %@",@"description for disconnected growl notification"), [tableWindow title]] - notificationName:@"Disconnected"]; + [[SPGrowlController sharedGrowlController] notifyWithTitle:@"Disconnected" + description:[NSString stringWithFormat:NSLocalizedString(@"Disconnected from %@",@"description for disconnected growl notification"), [tableWindow title]] + window:tableWindow + notificationName:@"Disconnected"]; } /** |