[gnome-shell/wip/paging-release: 25/74] 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: 25/74] Add commented testing to more or less items in collection at FolderView
- Date: Mon, 12 Aug 2013 21:12:19 +0000 (UTC)
commit 29f5b50a3fc89d5e2f199c68f4296e5f68efe969
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 2d39309..aa03e5d 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1071,8 +1071,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);
},
@@ -1105,10 +1105,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;
},
@@ -1120,7 +1125,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);
}
},
@@ -1145,7 +1152,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]