[gnome-shell] search: hide provider actors when they're created



commit 778ef365d9ce90f28f03f3758fa9c2bd631d4736
Author: Cosimo Cecchi <cosimo endlessm com>
Date:   Mon Sep 29 18:51:24 2014 -0700

    search: hide provider actors when they're created
    
    When the overview is created, search is populated with one actor for
    each provider. As they're not hidden though, they will contribute to the
    overall size request of the search page, which will shift upwards the
    overview grid.
    
    Reviewed-By: Jasper St. Pierre <jstpierre mecheye net>

 js/ui/search.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/search.js b/js/ui/search.js
index 8d41ae6..8e6b1dd 100644
--- a/js/ui/search.js
+++ b/js/ui/search.js
@@ -535,6 +535,7 @@ const SearchResults = new Lang.Class({
             providerDisplay = new GridSearchResults(provider, this.actor);
 
         providerDisplay.connect('key-focus-in', Lang.bind(this, this._keyFocusIn));
+        providerDisplay.actor.hide();
         this._content.add(providerDisplay.actor);
         provider.display = providerDisplay;
     },


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