1 --- matchbox-panel-0.9.2/applets/mb-applet-battery.c.orig 2005-04-06 22:20:45.000000000 +0200
2 +++ matchbox-panel-0.9.2/applets/mb-applet-battery.c 2006-02-01 01:21:17.000000000 +0100
5 paint_callback (MBTrayApp *app, Drawable drw )
10 unsigned char r = 0, g = 0, b = 0;
12 int bar_width, bar_height, bar_x, bar_y;
14 MBPixbufImage *img_backing = NULL;
19 - while (!read_apm(apm_vals))
22 - if (last_percentage == apm_vals[PERCENTAGE] && last_ac == apm_vals[AC_POWER])
25 img_backing = mb_tray_app_get_background (app, pb);
32 -timeout_callback ( MBTrayApp *app )
34 - mb_tray_app_repaint (app);
35 +void timeout_callback (MBTrayApp *app) {
36 + while (!read_apm(apm_vals))
39 + if (last_percentage != apm_vals[PERCENTAGE] || last_ac != apm_vals[AC_POWER])
40 + mb_tray_app_repaint (app);