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



Author: rhughes
Date: Mon Mar 24 10:17:35 2008
New Revision: 2739
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2739&view=rev

Log:
2008-03-24  Richard Hughes  <richard hughsie com>

* src/gpm-array.c: (gpm_array_append), (gpm_array_limit_x_size):
Add some extra debugging to try to work out #523682


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

Modified: trunk/src/gpm-array.c
==============================================================================
--- trunk/src/gpm-array.c	(original)
+++ trunk/src/gpm-array.c	Mon Mar 24 10:17:35 2008
@@ -138,6 +138,7 @@
 	point->y = y;
 	point->data = data;
 	g_ptr_array_add (array->priv->array, (gpointer) point);
+	gpm_debug ("adding to %p, x=%i, y=%i, data=%i", array->priv->array, x, y, data);
 	return TRUE;
 }
 
@@ -672,6 +673,7 @@
 	g_return_val_if_fail (GPM_IS_ARRAY (array), FALSE);
 
 	length = gpm_array_get_size (array);
+	gpm_debug ("length of array (before) %i", length);
 
 	/* sanity check */
 	if (length < max_num) {
@@ -705,6 +707,11 @@
 			a--;
 		}
 	}
+
+	/* check length */
+	length = gpm_array_get_size (array);
+	gpm_debug ("length of array (after) %i", length);
+
 	return TRUE;
 }
 



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