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



Author: rhughes
Date: Mon Dec  1 12:26:25 2008
New Revision: 3105
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3105&view=rev

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

* src/gpm-engine.c: (gpm_engine_device_changed_cb):
Don't keep repeating 'battery is discharging' signal


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

Modified: trunk/src/gpm-engine.c
==============================================================================
--- trunk/src/gpm-engine.c	(original)
+++ trunk/src/gpm-engine.c	Mon Dec  1 12:26:25 2008
@@ -665,7 +665,7 @@
 		}
 
 		/* save new state */
-		g_object_set_data (G_OBJECT(device), "engine-state-old", GUINT_TO_POINTER(state));
+		g_object_set_data (G_OBJECT(device), "engine-state-old", GUINT_TO_POINTER(obj->state));
 	}
 
 	gpm_engine_recalculate_state (engine);



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