blob: 53b257c7e580c9b988cb69db15aea99c409f227d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Index: gpe-conf-0.1.22/battery.c
===================================================================
--- gpe-conf-0.1.22.orig/battery.c 2005-02-17 13:13:00.000000000 +0000
+++ gpe-conf-0.1.22/battery.c 2005-02-17 13:39:43.000000000 +0000
@@ -335,7 +335,10 @@
break;
}
}
-
+
+ if (percent > 100) percent=100;
+ if (percent < 0 ) percent=0;
+
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (batt_int.bar),
(float)percent/100.0);
toolbar_set_style (batt_int.bar, barstate);
|