cleanup: Remove erroneous vfunc parameters

Unlike in C or signal handlers, vfuncs don't include the this-object
in their arguments.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/388
This commit is contained in:
Florian Müllner
2019-01-31 22:07:38 +01:00
committed by Florian Müllner
parent cdd2803498
commit 15e7625c80
7 changed files with 17 additions and 17 deletions

View File

@ -377,13 +377,13 @@ class IndicatorPad extends St.Widget {
super._init();
}
vfunc_get_preferred_width(container, forHeight) {
vfunc_get_preferred_width(forHeight) {
if (this._source.visible)
return this._source.get_preferred_width(forHeight);
return [0, 0];
}
vfunc_get_preferred_height(container, forWidth) {
vfunc_get_preferred_height(forWidth) {
if (this._source.visible)
return this._source.get_preferred_height(forWidth);
return [0, 0];