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



Author: rhughes
Date: Fri Dec 26 11:27:51 2008
New Revision: 3140
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3140&view=rev

Log:
2008-12-26  Richard Hughes  <richard hughsie com>

* src/gpm-cell-array.c: (phone_device_added_cb):
Fix a trivial compile warning in the old code.


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	Fri Dec 26 11:27:51 2008
@@ -1072,7 +1072,7 @@
  **/
 static void
 phone_device_added_cb (GpmPhone     *phone,
-		       guint        *index,
+		       guint         index,
 		       GpmCellArray *cell_array)
 {
 
@@ -1093,7 +1093,7 @@
 			  G_CALLBACK (gpm_cell_charging_changed_cb), cell_array);
 	g_signal_connect (cell, "discharging-changed",
 			  G_CALLBACK (gpm_cell_discharging_changed_cb), cell_array);
-	gpm_cell_set_phone_index (cell, 0);
+	gpm_cell_set_phone_index (cell, index);
 	gpm_cell_print (cell);
 
 	g_ptr_array_add (cell_array->priv->array, (gpointer) cell);



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