[gnome-shell/gnome-40] shellDBus: Remove bogus return statements
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-40] shellDBus: Remove bogus return statements
- Date: Fri, 9 Jul 2021 22:22:22 +0000 (UTC)
commit 170d035ac601c6562e96247aae420af73a16191c
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jun 17 15:41:20 2021 +0200
shellDBus: Remove bogus return statements
g_dbus_method_invocation_return_value() doesn't have a return value.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1891>
(cherry picked from commit 6813e246cdf6a0719b4a7de8dd91aa4664be8d63)
js/ui/shellDBus.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index 39f142af95..48e7bb5b89 100644
--- a/js/ui/shellDBus.js
+++ b/js/ui/shellDBus.js
@@ -111,7 +111,7 @@ var GnomeShell = class {
let [accel, modeFlags, grabFlags] = params;
let sender = invocation.get_sender();
let bindingAction = this._grabAcceleratorForSender(accel, modeFlags, grabFlags, sender);
- return invocation.return_value(GLib.Variant.new('(u)', [bindingAction]));
+ invocation.return_value(GLib.Variant.new('(u)', [bindingAction]));
}
GrabAcceleratorsAsync(params, invocation) {
@@ -122,7 +122,7 @@ var GnomeShell = class {
let [accel, modeFlags, grabFlags] = accels[i];
bindingActions.push(this._grabAcceleratorForSender(accel, modeFlags, grabFlags, sender));
}
- return invocation.return_value(GLib.Variant.new('(au)', [bindingActions]));
+ invocation.return_value(GLib.Variant.new('(au)', [bindingActions]));
}
UngrabAcceleratorAsync(params, invocation) {
@@ -130,7 +130,7 @@ var GnomeShell = class {
let sender = invocation.get_sender();
let ungrabSucceeded = this._ungrabAcceleratorForSender(action, sender);
- return invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded]));
+ invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded]));
}
UngrabAcceleratorsAsync(params, invocation) {
@@ -141,7 +141,7 @@ var GnomeShell = class {
for (let i = 0; i < actions.length; i++)
ungrabSucceeded &= this._ungrabAcceleratorForSender(actions[i], sender);
- return invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded]));
+ invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded]));
}
_emitAcceleratorActivated(action, device, timestamp) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]