[gnome-settings-daemon/gnome-3-22] Build fixes for the power plugin
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-22] Build fixes for the power plugin
- Date: Tue, 22 Aug 2017 23:44:20 +0000 (UTC)
commit 5d01f0228f4166e8a137ac0c33579c2b596a4c24
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Aug 21 18:46:31 2017 +0100
Build fixes for the power plugin
Commit 476154fe and commit 867b2039 broke the build.
Full Continuous log:
http://build.gnome.org/continuous/buildmaster/builds/2017/08/21/49/build/log-gnome-settings-daemon.txt
https://bugzilla.gnome.org/show_bug.cgi?id=786577
plugins/power/gsd-power-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index e5d1d4d..5e8325e 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -989,7 +989,7 @@ iio_proxy_claim_light (GsdPowerManager *manager, gboolean active)
return;
if (!manager->priv->backlight_available)
return;
- if (active && !manager->priv->session_is_active) {
+ if (active && !manager->priv->session_is_active)
return;
if (!g_dbus_proxy_call_sync (manager->priv->iio_proxy,
@@ -2500,7 +2500,7 @@ iio_proxy_changed (GsdPowerManager *manager)
if (val_has == NULL || !g_variant_get_boolean (val_has))
goto out;
val_als = g_dbus_proxy_get_cached_property (manager->priv->iio_proxy, "LightLevel");
- if (val_als == NULL || g_variant_get_double (val_als) == 0.0) {
+ if (val_als == NULL || g_variant_get_double (val_als) == 0.0)
goto out;
manager->priv->ambient_last_absolute = g_variant_get_double (val_als);
g_debug ("Read last absolute light level: %f", manager->priv->ambient_last_absolute);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]