[gpm] better x axis ticks in gnome power manager



Dear people of gnome power manager (especially Richard),
Every now and then, I check my battery charging data in gpm, and find one thing particularly annoying: those 10 fixed divisions of the x (time) axis. So I figured I should better do something about it, and I did.
My patch introduces a new graph setting divs_x that changes with the time range chosen in the combo box. An easy one, that I hope you'll like.
I fix a few other things that I didn't like as well:
- due to some code missing for all 5 time range options, the settings for 1 day and 1 week would be saved, but the combo box always showed the third option (6 hours) after a restart

- 10 minutes, 2 hrs, 6 hrs have become 30 minutes, 3 hrs, 8 hrs for the following reason: 10 minutes is too short, data logging happens only every 2-or-so minutes;
usual battery life seems to be something around 3 or up to 8 hours, so I thought extending these ranges would help us see the whole cycle
The latter changes will require some updates to the .po files, nothing that a few simple
sed -i 's/10 /30 /' *.po
sed -i 's/2 /3 /' *.po
sed -i 's/6 /8 /' *.po
cannot fix... in all but
as.po  bn_IN.po  bn.po  dz.po  en shaw po  fa.po  gu.po  he.po  ka.po  km.po  mai.po  si.po
from what I can see.


The patch is attached, do as you please. If you'd rather like this pushed onto github, I can do that as well.
Many thanks for a very useful little piece of software.
Best regards,
Ivo


Attachment: gpm_better_ticks.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]