[gnome-shell] More invalid source fixes



commit 554d5aeb7ce40da852972c9fb4ef778523780dac
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Nov 8 04:48:51 2013 +0100

    More invalid source fixes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711732

 js/ui/appDisplay.js                 |    2 ++
 js/ui/components/networkAgent.js    |    1 +
 js/ui/components/telepathyClient.js |    2 ++
 js/ui/endSessionDialog.js           |    1 +
 js/ui/overview.js                   |    2 ++
 js/ui/workspace.js                  |    1 +
 6 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index c40d8f6..c683cc2 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1355,7 +1355,9 @@ const AppIcon = new Lang.Class({
             this._removeMenuTimeout();
             this._menuTimeoutId = Mainloop.timeout_add(MENU_POPUP_TIMEOUT,
                 Lang.bind(this, function() {
+                    this._menuTimeoutId = 0;
                     this.popupMenu();
+                    return false;
                 }));
         } else if (button == 3) {
             this.popupMenu();
diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js
index d452f9c..57e7628 100644
--- a/js/ui/components/networkAgent.js
+++ b/js/ui/components/networkAgent.js
@@ -434,6 +434,7 @@ const VPNRequestHandler = new Lang.Class({
     },
 
     _vpnChildFinished: function(pid, status, requestObj) {
+        this._childWatch = 0;
         if (this._newStylePlugin) {
             // For new style plugin, all work is done in the async reading functions
             // Just reap the process here
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index c4565ec..b24791d 100644
--- a/js/ui/components/telepathyClient.js
+++ b/js/ui/components/telepathyClient.js
@@ -960,6 +960,8 @@ const ChatNotification = new Lang.Class({
     },
 
     appendTimestamp: function() {
+        this._timestampTimeoutId = 0;
+
         let lastMessageTime = this._history[0].time;
         let lastMessageDate = new Date(lastMessageTime * 1000);
 
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index 11f619a..60ca3f7 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -415,6 +415,7 @@ const EndSessionDialog = new Lang.Class({
                 let dialogContent = DialogContent[this._type];
                 let button = dialogContent.confirmButtons[dialogContent.confirmButtons.length - 1];
                 this._confirm(button.signal);
+                this._timerId = 0;
 
                 return false;
             }));
diff --git a/js/ui/overview.js b/js/ui/overview.js
index fedfea0..867f7ef 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -363,11 +363,13 @@ const Overview = new Lang.Class({
             this._lastHoveredWindow = dragEvent.targetActor._delegate.metaWindow;
             this._windowSwitchTimeoutId = Mainloop.timeout_add(DND_WINDOW_SWITCH_TIMEOUT,
                                             Lang.bind(this, function() {
+                                                this._windowSwitchTimeoutId = 0;
                                                 this._needsFakePointerEvent = true;
                                                 
Main.activateWindow(dragEvent.targetActor._delegate.metaWindow,
                                                                     this._windowSwitchTimestamp);
                                                 this.hide();
                                                 this._lastHoveredWindow = null;
+                                                return false;
                                             }));
         }
 
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index be1407d..4f3958d 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1208,6 +1208,7 @@ const Workspace = new Lang.Class({
         }
 
         this._recalculateWindowPositions(WindowPositionFlags.ANIMATE);
+        this._repositionWindowsId = 0;
         return false;
     },
 


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