[gnome-shell] Clear _searchTimeoutId when removing search
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Clear _searchTimeoutId when removing search
- Date: Thu, 13 Aug 2009 17:15:37 +0000 (UTC)
commit 059c330d95f44edb33fd0b7cad39261b4c1abbe8
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Aug 13 13:11:21 2009 -0400
Clear _searchTimeoutId when removing search
When we remove the search because the search empty is
entry, we need to reset _searchTimeoutId to 0.
http://bugzilla.gnome.org/show_bug.cgi?id=591719
js/ui/dash.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index edd463e..4028c8d 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -455,8 +455,10 @@ Dash.prototype = {
if (!this._searchActive) {
if (this._searchPane != null)
this._searchPane.close();
- if (this._searchTimeoutId > 0)
+ if (this._searchTimeoutId > 0) {
Mainloop.source_remove(this._searchTimeoutId);
+ this._searchTimeoutId = 0;
+ }
return;
}
if (this._searchTimeoutId > 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]