overview, viewSelector: show/hide workspaces on apps button

This commit is contained in:
Tanner Doshier 2012-10-10 22:17:41 -05:00 committed by Cosimo Cecchi
parent 7c3c6da368
commit 2498497cc1
2 changed files with 7 additions and 1 deletions

View File

@ -298,9 +298,11 @@ const Overview = new Lang.Class({
if (!this.visible || this.animationInProgress)
return;
let appsActive = this._viewSelector.getAppsActive();
let searchActive = this._viewSelector.getSearchActive();
let dashVisible = !searchActive || inDrag;
let thumbnailsVisible = !searchActive || inDrag;
let thumbnailsVisible = (!searchActive && !appsActive) || inDrag;
let trayVisible = !searchActive;
if (dashVisible)

View File

@ -455,6 +455,10 @@ const ViewSelector = new Lang.Class({
RemoteSearch.loadRemoteSearchProviders(Lang.bind(this, this.addSearchProvider));
},
getAppsActive: function() {
return this._showAppsButton.checked;
},
addSearchProvider: function(provider) {
if (!this._shouldUseSearchProvider(provider))
return;