cleanup: Also replace Params.parse(..., true) with spread
This is what Params.parse() boils down to when accepting extra parameters, so we can just as well use standard syntax here. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3196>
This commit is contained in:
@ -6,19 +6,17 @@ import GObject from 'gi://GObject';
|
||||
import St from 'gi://St';
|
||||
|
||||
import * as Main from './main.js';
|
||||
import * as Params from '../misc/params.js';
|
||||
import * as PopupMenu from './popupMenu.js';
|
||||
|
||||
export const ButtonBox = GObject.registerClass(
|
||||
class ButtonBox extends St.Widget {
|
||||
_init(params) {
|
||||
params = Params.parse(params, {
|
||||
super._init({
|
||||
style_class: 'panel-button',
|
||||
x_expand: true,
|
||||
y_expand: true,
|
||||
}, true);
|
||||
|
||||
super._init(params);
|
||||
...params,
|
||||
});
|
||||
|
||||
this._delegate = this;
|
||||
|
||||
|
Reference in New Issue
Block a user