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
This commit is contained in:
Cosimo Cecchi 2013-02-16 12:54:19 -05:00
parent 1390cd4048
commit 1f1aba4a32

View File

@ -161,6 +161,7 @@ const ViewSelector = new Lang.Class({
show: function() { show: function() {
this._activePage = this._workspacesPage; this._activePage = this._workspacesPage;
this.reset();
this._appsPage.hide(); this._appsPage.hide();
this._searchPage.hide(); this._searchPage.hide();
this._workspacesDisplay.show(); this._workspacesDisplay.show();
@ -244,11 +245,8 @@ const ViewSelector = new Lang.Class({
}, },
_onShowAppsButtonToggled: function() { _onShowAppsButtonToggled: function() {
if (this._searchActive) this._showPage(this._showAppsButton.checked ? this._appsPage
this.reset(); : this._workspacesPage);
else
this._showPage(this._showAppsButton.checked ? this._appsPage
: this._workspacesPage);
}, },
_resetShowAppsButton: function() { _resetShowAppsButton: function() {