[Xfce4-commits] <xfce4-battery-plugin:master> Initialize old_state to -1 to force the icon being set if battery is really missing
Landry Breuil
noreply at xfce.org
Mon Apr 23 11:50:04 CEST 2012
Updating branch refs/heads/master
to f9f0f2c140dfa3d111364b45afc6c540826a8402 (commit)
from ae2b91025e132cd79d3b04cdafb793e869382834 (commit)
commit f9f0f2c140dfa3d111364b45afc6c540826a8402
Author: Landry Breuil <landry at xfce.org>
Date: Mon Apr 23 11:49:01 2012 +0200
Initialize old_state to -1 to force the icon being set if battery is really missing
panel-plugin/battery.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index a930920..a519424 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -291,7 +291,7 @@ update_apm_status(t_battmon *battmon)
int lcapacity, ccapacity;
gboolean fan=FALSE;
const char *temp;
- static int old_state = BM_MISSING, new_state = BM_MISSING;
+ static int old_state = -1, new_state = BM_MISSING;
gchar * icon_name = NULL;
int time_remaining=0;
gboolean acline;
More information about the Xfce4-commits
mailing list