iconGrid: Merge PaginatedIconGrid and IconGrid
Now that the only user of the IconGrid is AppDisplay, and it only uses the paginated icon grid, there's no point in having the two classes split anymore. In addition to that, future commits will introduce a layout manager that will extend current icon grid features, and merging PaginatedIconGrid and IconGrid in the same class will vastly simplify this transition. Merge PaginatedIconGrid into IconGrid, and adapt AppDisplay to this change. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1267
This commit is contained in:
@ -138,11 +138,7 @@ var BaseAppView = GObject.registerClass({
|
||||
padWithSpacing: true,
|
||||
}, true);
|
||||
|
||||
if (this.use_pagination)
|
||||
this._grid = new IconGrid.PaginatedIconGrid(gridParams);
|
||||
else
|
||||
this._grid = new IconGrid.IconGrid(gridParams);
|
||||
|
||||
this._grid = new IconGrid.IconGrid(gridParams);
|
||||
this._grid.connect('child-focused', (grid, actor) => {
|
||||
this._childFocused(actor);
|
||||
});
|
||||
@ -331,7 +327,6 @@ class AppDisplay extends BaseAppView {
|
||||
layout_manager: new Clutter.BinLayout(),
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
use_pagination: true,
|
||||
});
|
||||
|
||||
this._grid._delegate = this;
|
||||
|
Reference in New Issue
Block a user