summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-08-21 18:46:31 +0100
committerBastien Nocera <hadess@hadess.net>2017-08-23 01:44:05 +0200
commit5d01f0228f4166e8a137ac0c33579c2b596a4c24 (patch)
tree0906b944d6b7193e5e78ef9f7fdac5694869f7ce
parent0993e0784ba8e87941adcf9d17a0a5b3cab02266 (diff)
downloadgnome-settings-daemon-gnome-3-22.tar.gz
Build fixes for the power plugingnome-3-22
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
-rw-r--r--plugins/power/gsd-power-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index e5d1d4d7..5e8325ec 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);