gnome-power-manager r2942 - in trunk: . src



Author: rhughes
Date: Tue Sep  9 07:25:35 2008
New Revision: 2942
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2942&view=rev

Log:
2008-09-09  Richard Hughes  <richard hughsie com>

* src/gpm-cell-array.c: (gpm_cell_array_get_time_until_action):
Don't clear the array when attempt to get the time.
Fix from Joakim Andersson, many thanks.


Modified:
   trunk/ChangeLog
   trunk/src/gpm-cell-array.c

Modified: trunk/src/gpm-cell-array.c
==============================================================================
--- trunk/src/gpm-cell-array.c	(original)
+++ trunk/src/gpm-cell-array.c	Tue Sep  9 07:25:35 2008
@@ -177,9 +177,8 @@
 
 	g_return_val_if_fail (GPM_IS_CELL_ARRAY (cell_array), 0);
 
-	/* clear old values (except previous charge rate) */
+	/* array */
 	unit = &(cell_array->priv->unit);
-	gpm_cell_unit_init (unit);
 
 	/* not valid */
 	if (unit->is_charging || unit->is_discharging == FALSE) {



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