[gnome-shell] messageTray: Fix warning when opening the tray



commit 7b06d34ba43ce7355d586e801066b839ef55c1c9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Feb 20 23:37:54 2013 -0500

    messageTray: Fix warning when opening the tray
    
    As the tray hover handler will call _cancelTrayDwell, we need to
    ensure this variable is initialized even if tray dwelling isn't.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694336

 js/ui/messageTray.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 308b223..2deb9fe 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1754,12 +1754,13 @@ const MessageTray = new Lang.Class({
     },
 
     _setupTrayDwellIfNeeded: function() {
+        this._trayDwellTimeoutId = 0;
+
         // If we don't have extended barrier features, then we need
         // to support the old tray dwelling mechanism.
         if (!global.display.supports_extended_barriers()) {
             let pointerWatcher = PointerWatcher.getPointerWatcher();
             pointerWatcher.addWatch(TRAY_DWELL_CHECK_INTERVAL, Lang.bind(this, this._checkTrayDwell));
-            this._trayDwellTimeoutId = 0;
             this._trayDwelling = false;
             this._trayDwellUserTime = 0;
         }


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