[gnome-settings-daemon/gnome-3-24] 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-24] Build fixes for the power plugin
- Date: Tue, 22 Aug 2017 23:44:54 +0000 (UTC)
commit a82e5ff48304c9a1915e35d613b8cf114ba1228a
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 9c4b378..a0955d6 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -992,7 +992,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,
@@ -2509,7 +2509,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]