[gnome-documents] window: use Mainloop.source_remove() to disconnect the timeout



commit 35da5e614118acf3db98514d3f66c7e7913f3d8c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jul 26 12:39:13 2011 +0200

    window: use Mainloop.source_remove() to disconnect the timeout

 src/mainWindow.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 6dd457b..b332b85 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -74,7 +74,6 @@ MainWindow.prototype = {
         this._grid = new Gtk.Grid({ orientation: Gtk.Orientation.VERTICAL });
         this.window.add(this._grid);
 
-        this._searchTimeout = 0;
         this._toolbar = new MainToolbar.MainToolbar();
         this._toolbar.setOverview();
         this._toolbar.searchEntry.connect('changed',
@@ -243,7 +242,7 @@ MainWindow.prototype = {
 
     _onSearchEntryChanged: function() {
         if (this._searchTimeout != 0) {
-            GLib.source_remove(this._searchTimeout);
+            Mainloop.source_remove(this._searchTimeout);
             this._searchTimeout = 0;
         }
 



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