[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Fix build with --disable-dpms
noreply at xfce.org
noreply at xfce.org
Sat May 31 19:14:09 CEST 2014
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit c25cbd003c2b4f99b8aca2e0a3c6b3d2741d033d
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Sat May 31 20:13:15 2014 +0300
Fix build with --disable-dpms
---
src/xfpm-power.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index d4091ad..e3a1d68 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -194,7 +194,9 @@ xfpm_power_check_power (XfpmPower *power, gboolean on_battery)
GList *list;
guint len, i;
g_signal_emit (G_OBJECT (power), signals [ON_BATTERY_CHANGED], 0, on_battery);
+#ifdef HAVE_DPMS
xfpm_dpms_set_on_battery (power->priv->dpms, on_battery);
+#endif
power->priv->on_battery = on_battery;
list = g_hash_table_get_values (power->priv->hash);
len = g_list_length (list);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list