[gnome-shell] Return false from the timeout callback function
- From: Marina Zhurakhinskaya <marinaz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell] Return false from the timeout callback function
- Date: Fri, 24 Jul 2009 17:02:53 +0000 (UTC)
commit 978ab8a4dd4bfadddbec264519f4d2eaa09aff18
Author: Marina Zhurakhinskaya <marinaz redhat com>
Date: Fri Jul 24 12:58:53 2009 -0400
Return false from the timeout callback function
Timeout callback function should not be rescheduled again with the same timeout
because we compute a new timeout and schedule it again instead. So the callback
function needs to return false to not be scheduled again by default.
js/ui/docDisplay.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/docDisplay.js b/js/ui/docDisplay.js
index c507e67..3027936 100644
--- a/js/ui/docDisplay.js
+++ b/js/ui/docDisplay.js
@@ -224,7 +224,7 @@ DocDisplay.prototype = {
docDisplayItem.redisplay(currentSecs);
this._updateTimeoutCallback(docDisplayItem, currentSecs);
}
- return true;
+ return false;
},
// Updates the timeout callback if the timeout time for the docDisplayItem
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]