[gnome-shell/wip/paging-release: 41/90] Add commented testing to more or less items in collection at FolderView
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/paging-release: 41/90] Add commented testing to more or less items in collection at FolderView
- Date: Mon, 12 Aug 2013 13:49:27 +0000 (UTC)
commit 21e685b3497ef5f12e4c8cdfae0cdf13d6eccad5
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Fri Jul 12 12:42:46 2013 +0200
Add commented testing to more or less items in collection at FolderView
js/ui/appDisplay.js | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index a9490c2..2fdbabd 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1065,8 +1065,8 @@ const FolderView = new Lang.Class({
addApp: function(app) {
//FIXME
- if(this._allItems.length > 1)
- return;
+ /*if(this._allItems.length > 20)
+ return;*/
this._addItem(app);
},
@@ -1099,10 +1099,15 @@ const FolderView = new Lang.Class({
let id = this._getItemId(item);
if (this._items[id] !== undefined)
return null;
-
+ //FIXME
+ //let itemIcon2 = this._createItemIcon(item);
+ //this._allItems.push(item);
+ //this._items[id + 1] = itemIcon2;
let itemIcon = this._createItemIcon(item);
+
this._allItems.push(item);
this._items[id] = itemIcon;
+
return itemIcon;
},
@@ -1114,7 +1119,9 @@ const FolderView = new Lang.Class({
let id = this._getItemId(this._allItems[i]);
if (!id)
continue;
+ //FIXME
this._grid.addItem(this._items[id].actor);
+ this._grid.addItem(this._items[id + 1].actor);
}
},
@@ -1139,7 +1146,9 @@ const FolderView = new Lang.Class({
if(this.nRowsDisplayedAtOnce() == this.maxRowsDisplayedAtOnce())
boxPointerTotalOffset = this._boxPointerOffsets['arrowHeight'] +
this._boxPointerOffsets['padding'] * 2 + this._boxPointerOffsets['closeButtonOverlap'];
else
- boxPointerTotalOffset = this._boxPointerOffsets['arrowHeight'] +
this._boxPointerOffsets['padding'] * 2;
+ boxPointerTotalOffset = this._boxPointerOffsets['arrowHeight'] +
this._boxPointerOffsets['padding'] * 2;
+ //FIXME
+ boxPointerTotalOffset = this._boxPointerOffsets['arrowHeight'] + this._boxPointerOffsets['padding']
* 2 + this._boxPointerOffsets['closeButtonOverlap'];
let offsetForEachSide = Math.ceil(boxPointerTotalOffset / 2);
this._grid.top_padding = spacing - offsetForEachSide;
this._grid.bottom_padding = spacing - offsetForEachSide;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]