From 45415a742fe413af27080fc8b11940fab2fed2f0 Mon Sep 17 00:00:00 2001 From: Tanner Doshier Date: Thu, 24 Jan 2013 16:34:06 -0500 Subject: [PATCH] overview: hide side controls when searching Hide the elements when the search is active. Show them if the search is cancelled. https://bugzilla.gnome.org/show_bug.cgi?id=682050 --- js/ui/overview.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/ui/overview.js b/js/ui/overview.js index 399bd191d..10deadae9 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -277,8 +277,15 @@ const Overview = new Lang.Class({ return; let activePage = this._viewSelector.getActivePage(); + let dashVisible = (activePage == ViewSelector.ViewPage.WINDOWS || + activePage == ViewSelector.ViewPage.APPS); let thumbnailsVisible = (activePage == ViewSelector.ViewPage.WINDOWS); + if (dashVisible) + this._dashSlider.slideIn(); + else + this._dashSlider.slideOut(); + if (thumbnailsVisible) this._thumbnailsSlider.slideIn(); else