[gnome-shell] notificationDaemon: Fix trayIcon check



commit 5322e9a64391a0f2a834d0458a66943d4d0105e0
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Fri Jan 7 16:22:28 2011 +0100

    notificationDaemon: Fix trayIcon check
    
    Correctly detect non tray icons and use the ShellApp's icon in that case.

 js/ui/notificationDaemon.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 7197008..cbf34cf 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -476,8 +476,8 @@ Source.prototype = {
             return;
 
         // Only override the icon if we were previously using
-        // notification-based icons (ie, not a trayicon)
-        if (this.useNotificationIcon) {
+        // notification-based icons (ie, not a trayicon) or if it was unset before
+        if (!this._isTrayIcon) {
             this.useNotificationIcon = false;
             this._setSummaryIcon(this.app.create_icon_texture (this.ICON_SIZE));
         }



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