From edbfafc5bda0de727e61a687e5b0cc5f16658c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 23 Feb 2010 15:58:33 +0100 Subject: [PATCH] Fix clicking on notification icons after updates When a notification is updated by the application, the corresponding app in its source is lost, so it is no longer possible to switch to the application by clicking either the notification or the summary icon. As the associated application of a source never changes, it appears safe to leave it alone on notification updates. https://bugzilla.gnome.org/show_bug.cgi?id=610820 --- js/ui/notificationDaemon.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 89710d62b..a0774b7f8 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -300,6 +300,9 @@ Source.prototype = { _init: function(sourceId, icon, hints) { MessageTray.Source.prototype._init.call(this, sourceId); + this.app = null; + this._openAppRequested = false; + this.update(icon, hints); }, @@ -309,9 +312,6 @@ Source.prototype = { this._icon = icon; this._iconData = hints.icon_data; this._urgency = hints.urgency; - - this.app = null; - this._openAppRequested = false; }, createIcon: function(size) {