iconGrid: Rename childrenInRow to columnsForWidth
Since the parameter of the function is the width, reflect that in the function name. Also, since we are counting columns, not only children for each row, reflect that in the function name also. https://bugzilla.gnome.org/show_bug.cgi?id=706081
This commit is contained in:
parent
3984c47867
commit
cc449228f3
@ -330,7 +330,7 @@ const IconGrid = new Lang.Class({
|
||||
return childBox;
|
||||
},
|
||||
|
||||
childrenInRow: function(rowWidth) {
|
||||
columnsForWidth: function(rowWidth) {
|
||||
return this._computeLayout(rowWidth)[0];
|
||||
},
|
||||
|
||||
|
@ -320,7 +320,7 @@ const GridSearchResults = new Lang.Class({
|
||||
},
|
||||
|
||||
_getMaxDisplayedResults: function() {
|
||||
return this._grid.childrenInRow(this._bin.width) * this._grid.getRowLimit();
|
||||
return this._grid.columnsForWidth(this._bin.width) * this._grid.getRowLimit();
|
||||
},
|
||||
|
||||
_renderResults: function(metas) {
|
||||
|
Loading…
Reference in New Issue
Block a user