[gnome-shell] Fix clicking on notification icons after updates



commit edbfafc5bda0de727e61a687e5b0cc5f16658c9e
Author: Florian Müllner <fmuellner src gnome org>
Date:   Tue Feb 23 15:58:33 2010 +0100

    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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 89710d6..a0774b7 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]