Updating branch refs/heads/master
to 3e0536c2474477424438e13ade2e7b1eee7f265c (commit)
from 62dd0eed1cd86490ac6994c176c28dbe7b0c4400 (commit)
commit 3e0536c2474477424438e13ade2e7b1eee7f265c
Author: Landry Breuil <[email protected]>
Date: Tue Apr 24 10:23:58 2012 +0200
Only display time if it's valid
for example it can be -1 when using APM on OpenBSD and charging..
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 f1ac711..5c75bdd 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -528,7 +528,7 @@ battmon.c:241: for each function it appears in.)
gtk_widget_hide(GTK_WIDGET(battmon->charge));
}
- if (battmon->options.display_time && charge > 0 &&
!(battmon->options.hide_when_full && acline && charge >= 99 )){
+ if (battmon->options.display_time && time_remaining > 0 &&
!(battmon->options.hide_when_full && acline && charge >= 99 )){
GtkLabel *active_label;
if ( battmon_time_labels_fits( battmon ) ) {
active_label = battmon->rtime;
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits