[Xfce4-commits] <xfce4-battery-plugin:master> When using APM on Net/OpenBSD, set battmon->method
Landry Breuil
noreply at xfce.org
Tue Apr 24 10:12:01 CEST 2012
Updating branch refs/heads/master
to d905fdace106c57e80e83e71fbabd5fde67882ca (commit)
from f79ba1a1cb8aa45608675fc9dfabb45c89163482 (commit)
commit d905fdace106c57e80e83e71fbabd5fde67882ca
Author: Landry Breuil <landry at xfce.org>
Date: Tue Apr 24 09:56:17 2012 +0200
When using APM on Net/OpenBSD, set battmon->method
panel-plugin/battery.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index c05c834..5fdfcd3 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -325,6 +325,8 @@ update_apm_status(t_battmon *battmon)
time_remaining = apm.minutes_left;
acline = apm.ac_state ? TRUE : FALSE;
+ battmon->method = BM_USE_APM;
+
#else
#if defined(__linux__) || defined(APMDEVICE)
struct apm_info apm;
More information about the Xfce4-commits
mailing list