freebsd-ports/sysutils/xfce4-battery-plugin/files/patch-panel-plugin::battmon.c
Edwin Groothuis edf55c7a6d Update port: sysutils/xfce4-battery-plugin
Update xfce4-battery-plugin to 0.2.0.

PR:		ports/56741
Submitted by:	Thorsten Greiner <thorsten.greiner@web.de>
2003-09-24 12:01:53 +00:00

10 lines
333 B
C

--- panel-plugin/battmon.c.orig Fri Sep 12 23:38:01 2003
+++ panel-plugin/battmon.c Fri Sep 12 23:38:24 2003
@@ -362,6 +362,7 @@
if(charge < 0) charge = 0;
+ if(charge > 100) charge = 100;
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(battmon->battstatus), charge / 100.0);
if(battmon->options.display_label){