gnome-power-manager r2123 - in trunk: . src test



Author: rhughes
Date: 2007-04-03 19:32:02 +0100 (Tue, 03 Apr 2007)
New Revision: 2123
ViewCVS link: http://svn.gnome.org/viewcvs/gnome-power-manager?rev=2123&view=rev

Modified:
   trunk/ChangeLog
   trunk/src/gpm-cell-array.c
   trunk/src/gpm-common.c
   trunk/src/gpm-common.h
   trunk/src/gpm-graph-widget.c
   trunk/test/gpm-st-common.c
Log:
2007-04-03  Richard Hughes  <richard hughsie com>

* src/gpm-common.h:
* src/gpm-common.c: (gpm_precision_round_up), (gpm_precision_round_down):
Create two helper functions to do base rounding in a sane way.

* test/gpm-st-common.c: (gpm_st_common):
Test the new round up and round down code.

* src/gpm-cell-array.c: (gpm_cell_array_get_description):
* src/gpm-graph-widget.c: (gpm_graph_widget_auto_range):
Use the round up and down code to make the graph scaling a bit more
sane, and also to limit the precision to 5 minutes in the tooltip.





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