diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2006-02-06 18:36:28 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-02-06 18:36:28 +0000 |
commit | 5c70d86825ced73fe07d02a4647e70c54f2efe07 (patch) | |
tree | 23b7b80934d3f7d54d036bfa71c7ffae68dd169b /packages/matchbox-panel/matchbox-panel-0.9.2/mb-applet-battery-repaint.patch | |
parent | 11ec8ab68be596ed8fca854042f2e8815da19ce2 (diff) | |
parent | edab0569b271a6c11d611afcdeb3f8a5a3a682e6 (diff) |
merge of 87274db5332eba6f472a3332129b88b8282ccda2
and 3b6a0bff32c9c79ebeb059cd1559d7731542af03
Diffstat (limited to 'packages/matchbox-panel/matchbox-panel-0.9.2/mb-applet-battery-repaint.patch')
-rw-r--r-- | packages/matchbox-panel/matchbox-panel-0.9.2/mb-applet-battery-repaint.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/matchbox-panel/matchbox-panel-0.9.2/mb-applet-battery-repaint.patch b/packages/matchbox-panel/matchbox-panel-0.9.2/mb-applet-battery-repaint.patch new file mode 100644 index 0000000000..7d5c53f165 --- /dev/null +++ b/packages/matchbox-panel/matchbox-panel-0.9.2/mb-applet-battery-repaint.patch @@ -0,0 +1,43 @@ +--- matchbox-panel-0.9.2/applets/mb-applet-battery.c.orig 2005-04-06 22:20:45.000000000 +0200 ++++ matchbox-panel-0.9.2/applets/mb-applet-battery.c 2006-02-01 01:21:17.000000000 +0100 +@@ -200,23 +200,12 @@ + void + paint_callback (MBTrayApp *app, Drawable drw ) + { +- +- + int power_pixels = 0; + unsigned char r = 0, g = 0, b = 0; + int x, y; + int bar_width, bar_height, bar_x, bar_y; + + MBPixbufImage *img_backing = NULL; +- +- +- +- +- while (!read_apm(apm_vals)) +- usleep(50000L); +- +- if (last_percentage == apm_vals[PERCENTAGE] && last_ac == apm_vals[AC_POWER]) +- return; + + img_backing = mb_tray_app_get_background (app, pb); + +@@ -409,10 +398,12 @@ + + } + +-void +-timeout_callback ( MBTrayApp *app ) +-{ +- mb_tray_app_repaint (app); ++void timeout_callback (MBTrayApp *app) { ++ while (!read_apm(apm_vals)) ++ usleep(50000L); ++ ++ if (last_percentage != apm_vals[PERCENTAGE] || last_ac != apm_vals[AC_POWER]) ++ mb_tray_app_repaint (app); + } + + void |