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:
Carlos Soriano 2013-08-22 23:27:05 +02:00
parent 3984c47867
commit cc449228f3
2 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ const IconGrid = new Lang.Class({
return childBox;
},
childrenInRow: function(rowWidth) {
columnsForWidth: function(rowWidth) {
return this._computeLayout(rowWidth)[0];
},

View File

@ -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) {