summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@jonnylamb.com>2014-06-27 22:11:56 (GMT)
committerJonny Lamb <jonnylamb@jonnylamb.com>2014-06-27 22:11:56 (GMT)
commitebe31c9d330d9013a30edd2b53ebbe0a21baf1f2 (patch)
tree08ed90c66ecc7f8b5e8d6ad0bcb743d1b8a13821
parenta10b2aa6ffe02371909e3d35bd45c25f1b1d81dc (diff)
downloadshell-message-notifier-ebe31c9d330d9013a30edd2b53ebbe0a21baf1f2.tar.gz
shell-message-notifier-ebe31c9d330d9013a30edd2b53ebbe0a21baf1f2.tar.xz
extension: deal with class name changes in MessageTray
The old SourceActor in 3.10 has been split into two classes: SourceActor and SourceActorWithLabel. The counting is done in the former so we need to override the correct function.
-rw-r--r--extension.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/extension.js b/extension.js
index 1cb799c..e6e45c9 100644
--- a/extension.js
+++ b/extension.js
@@ -347,8 +347,8 @@ function enable() {
settings = Convenience.getSettings();
- originalUpdateCount = MessageTray.SourceActor.prototype._updateCount;
- MessageTray.SourceActor.prototype._updateCount = customUpdateCount;
+ originalUpdateCount = MessageTray.SourceActorWithLabel.prototype._updateCount;
+ MessageTray.SourceActorWithLabel.prototype._updateCount = customUpdateCount;
indicator = new Indicator();
Main.panel.addToStatusArea('message-notifier', indicator, 0);
@@ -357,7 +357,7 @@ function enable() {
function disable() {
debug ("disabling");
- MessageTray.SourceActor.prototype._updateCount = originalUpdateCount;
+ MessageTray.SourceActorWithLabel.prototype._updateCount = originalUpdateCount;
originalUpdateCount = null;
indicator.destroy();