[gnome-settings-daemon] power: Use cancellable for UPower kbd proxy calls
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Use cancellable for UPower kbd proxy calls
- Date: Mon, 30 Jan 2017 11:21:13 +0000 (UTC)
commit 14511fbcc6e2b3b5944fc54d22c9301af89ef25c
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 30 12:17:21 2017 +0100
power: Use cancellable for UPower kbd proxy calls
Even if those are sync now, they might not be in the future.
plugins/power/gsd-power-manager.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index ce0d2b9..63c4480 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -1137,7 +1137,7 @@ upower_kbd_set_brightness (GsdPowerManager *manager, guint value, GError **error
g_variant_new ("(i)", (gint) value),
G_DBUS_CALL_FLAGS_NONE,
-1,
- NULL,
+ manager->priv->cancellable,
error);
if (retval == NULL)
return FALSE;
@@ -1966,7 +1966,7 @@ power_keyboard_proxy_ready_cb (GObject *source_object,
NULL,
G_DBUS_CALL_FLAGS_NONE,
-1,
- NULL,
+ manager->priv->cancellable,
&error);
if (k_now == NULL) {
if (error->domain != G_DBUS_ERROR ||
@@ -1986,7 +1986,7 @@ power_keyboard_proxy_ready_cb (GObject *source_object,
NULL,
G_DBUS_CALL_FLAGS_NONE,
-1,
- NULL,
+ manager->priv->cancellable,
&error);
if (k_max == NULL) {
g_warning ("Failed to get max brightness: %s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]