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

@ -599,7 +599,7 @@ var AppSwitchAction = GObject.registerClass({
});
}
vfunc_gesture_prepare(action, actor) {
vfunc_gesture_prepare(actor) {
if (Main.actionMode != Shell.ActionMode.NORMAL) {
this.cancel();
return false;
@ -608,7 +608,7 @@ var AppSwitchAction = GObject.registerClass({
return this.get_n_current_points() <= 4;
}
vfunc_gesture_begin(action, actor) {
vfunc_gesture_begin(actor) {
// in milliseconds
const LONG_PRESS_TIMEOUT = 250;
@ -632,7 +632,7 @@ var AppSwitchAction = GObject.registerClass({
return this.get_n_current_points() <= 4;
}
vfunc_gesture_progress(action, actor) {
vfunc_gesture_progress(actor) {
const MOTION_THRESHOLD = 30;
if (this.get_n_current_points() == 3) {