[polari] mainWindow: Reset timeout id in handler



commit a5de6ccfb29de6bdd1aa784ff05bafaf6e206275
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Oct 28 21:20:59 2013 +0100

    mainWindow: Reset timeout id in handler
    
    Our timeout handler is only run once, after which its id is no longer
    valid. Reset it to 0 to reflect this, otherwise newer versions of GLib
    will print a warning when we later try to remove it explicitly.

 src/mainWindow.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 3842195..9fc7343 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -218,6 +218,7 @@ const MainWindow = new Lang.Class({
         this._configureId = Mainloop.timeout_add(CONFIGURE_TIMEOUT,
             Lang.bind(this, function() {
                 this._saveGeometry();
+                this._configureId = 0;
                 return false;
             }));
     },


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