[gnome-power-manager/gnome-2-26] Make sure the 'discharging' and 'fully charged' notices are the correct way around
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager/gnome-2-26] Make sure the 'discharging' and 'fully charged' notices are the correct way around
- Date: Fri, 3 Jul 2009 09:19:58 +0000 (UTC)
commit 67db511b4c388093e06ec0c636d1281c6fea8479
Author: Richard Hughes <richard hughsie com>
Date: Fri Jul 3 10:18:38 2009 +0100
Make sure the 'discharging' and 'fully charged' notices are the correct way around
src/gpm-engine.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gpm-engine.c b/src/gpm-engine.c
index 9a207da..db2b432 100644
--- a/src/gpm-engine.c
+++ b/src/gpm-engine.c
@@ -626,14 +626,14 @@ gpm_engine_device_changed_cb (DkpClient *client, DkpDevice *device, GpmEngine *e
state = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(device), "engine-state-old"));
if (state != obj->state) {
- if (state == DKP_DEVICE_STATE_DISCHARGING) {
+ if (obj->state == DKP_DEVICE_STATE_DISCHARGING) {
/* only emit this if specified in gconf */
ret = gconf_client_get_bool (engine->priv->conf, GPM_CONF_NOTIFY_DISCHARGING, NULL);
if (ret) {
egg_debug ("** EMIT: discharging");
g_signal_emit (engine, signals [DISCHARGING], 0, obj->type);
}
- } else if (state == DKP_DEVICE_STATE_FULLY_CHARGED) {
+ } else if (obj->state == DKP_DEVICE_STATE_FULLY_CHARGED) {
/* only emit this if specified in gconf */
ret = gconf_client_get_bool (engine->priv->conf, GPM_CONF_NOTIFY_FULLY_CHARGED, NULL);
if (ret) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]