[gnome-shell] places: Use consistent variable for bookmark monitor timeout
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] places: Use consistent variable for bookmark monitor timeout
- Date: Wed, 12 Aug 2009 23:34:59 +0000 (UTC)
commit 28517e4c348b1510514aeff20f31920191c67b49
Author: Colin Walters <walters verbum org>
Date: Wed Aug 12 12:29:33 2009 -0400
places: Use consistent variable for bookmark monitor timeout
We had an inconsistent usage of the timeout variable name. Fix
it to consistently be a member property of this.
js/ui/places.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/places.js b/js/ui/places.js
index b11c97a..f4d1609 100644
--- a/js/ui/places.js
+++ b/js/ui/places.js
@@ -95,13 +95,13 @@ Places.prototype = {
this._bookmarksPath = GLib.build_filenamev([GLib.get_home_dir(), ".gtk-bookmarks"]);
this._bookmarksFile = Gio.file_new_for_path(this._bookmarksPath);
let monitor = this._bookmarksFile.monitor_file(Gio.FileMonitorFlags.NONE, null);
- let timeoutId = 0;
+ this._bookmarkTimeoutId = 0;
monitor.connect('changed', Lang.bind(this, function () {
- if (timeoutId > 0)
+ if (this._bookmarkTimeoutId > 0)
return;
/* Defensive event compression */
- timeoutId = Mainloop.timeout_add(100, Lang.bind(this, function () {
- this._timeoutId = 0;
+ this._bookmarkTimeoutId = Mainloop.timeout_add(100, Lang.bind(this, function () {
+ this._bookmarkTimeoutId = 0;
this._reloadBookmarks();
return false;
}));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]