[gnome-shell/wip/paging-release: 71/74] Fix searching application



commit ab6f3bb3a0336405f3450493d49728dee5206bbe
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Sat Aug 3 11:20:46 2013 +0200

    Fix searching application

 js/ui/appDisplay.js    |    6 +++---
 js/ui/iconGrid.js      |   16 ++++++++--------
 js/ui/searchDisplay.js |    2 +-
 3 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 795207c..146d750 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -367,13 +367,13 @@ const PaginationScrollView = new Lang.Class({
         this._verticalAdjustment = new St.Adjustment();
         this._horizontalAdjustment = new St.Adjustment();
 
-        this._stack = new St.Widget({layout_manager: new Clutter.BinLayout()});        
-        this._box = new St.BoxLayout({vertical: true});
+        this._stack = new St.Widget({ layout_manager: new Clutter.BinLayout() });        
+        this._box = new St.BoxLayout({ vertical: true });
         this._pages = new AppPages(this);
         
         this._stack.add_actor(this._pages.actor);
         this._eventBlocker = new St.Widget({ x_expand: true, y_expand: true });
-        this._stack.add_actor(this._eventBlocker, {x_align:St.Align.MIDDLE});
+        this._stack.add_actor(this._eventBlocker, { x_align:St.Align.MIDDLE });
         
         this._box.add_actor(this._stack);
         this._box.set_adjustments(this._horizontalAdjustment, this._verticalAdjustment);
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index df3cdb8..0cbeaf2 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -245,14 +245,6 @@ const IconGrid = new Lang.Class({
         alloc.natural_size = nColumns * this.getHItemSize() + totalSpacing + this.left_padding + 
this.right_padding;
     },
 
-    _getVisibleChildren: function() {
-        let children = this._grid.get_children();
-        children = children.filter(function(actor) {
-            return actor.visible;
-        });
-        return children;
-    },
-
     _getPreferredHeight: function (grid, forWidth, alloc) {
         if (this._fillParent)
             // Ignore all size requests of children and request a size of 0;
@@ -285,6 +277,14 @@ const IconGrid = new Lang.Class({
         alloc.min_size = height;
         alloc.natural_size = height;
     },
+    
+    _getVisibleChildren: function() {
+        let children = this._grid.get_children();
+        children = children.filter(function(actor) {
+            return actor.visible;
+        });
+        return children;
+    },
 
     _allocate: function (grid, box, flags) {
         if(this._fillParent) {
diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js
index 9d47e44..a7a1cde 100644
--- a/js/ui/searchDisplay.js
+++ b/js/ui/searchDisplay.js
@@ -327,7 +327,7 @@ const GridSearchResults = new Lang.Class({
         for (let i = 0; i < metas.length; i++) {
             let display = new GridSearchResult(this.provider, metas[i], this._terms);
             display.actor.connect('key-focus-in', Lang.bind(this, this._keyFocusIn));
-            this._grid.addItem(display.actor);
+            this._grid.addItem(display);
         }
     },
 


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