[gnome-shell] viewSelector: always reset search string when entering overview



commit 1f1aba4a323f8342b39e49610d3c960ed4948e09
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Feb 16 12:54:19 2013 -0500

    viewSelector: always reset search string when entering overview
    
    Instead of relying on the apps button callback to do it for us.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693974

 js/ui/viewSelector.js |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 85ff615..de9237b 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -161,6 +161,7 @@ const ViewSelector = new Lang.Class({
     show: function() {
         this._activePage = this._workspacesPage;
 
+        this.reset();
         this._appsPage.hide();
         this._searchPage.hide();
         this._workspacesDisplay.show();
@@ -244,11 +245,8 @@ const ViewSelector = new Lang.Class({
     },
 
     _onShowAppsButtonToggled: function() {
-        if (this._searchActive)
-            this.reset();
-        else
-            this._showPage(this._showAppsButton.checked ? this._appsPage
-                                                        : this._workspacesPage);
+        this._showPage(this._showAppsButton.checked ? this._appsPage
+                                                    : this._workspacesPage);
     },
 
     _resetShowAppsButton: function() {


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