summaryrefslogtreecommitdiff
path: root/plugins/power/gpm-common.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-10-20 16:56:29 +0100
committerBastien Nocera <hadess@hadess.net>2011-10-20 16:56:29 +0100
commitb4aebdb8b6230c155168ace810ed8bd9ee45b4eb (patch)
treea528ff326a75902df6576ac6dc26792dd3196087 /plugins/power/gpm-common.c
parent2ccec6703b1fd8af183a1ee1bff4c81e8fb3b084 (diff)
downloadgnome-settings-daemon-b4aebdb8b6230c155168ace810ed8bd9ee45b4eb.tar.gz
power: Use parenthesis to make condition possible
Diffstat (limited to 'plugins/power/gpm-common.c')
-rw-r--r--plugins/power/gpm-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index 408259b6..c0f42ff9 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -290,7 +290,7 @@ gpm_upower_get_device_summary (UpDevice *device)
/* we care if we are on AC */
if (kind == UP_DEVICE_KIND_PHONE) {
- if (state == UP_DEVICE_STATE_CHARGING || !state == UP_DEVICE_STATE_DISCHARGING) {
+ if (state == UP_DEVICE_STATE_CHARGING || !(state == UP_DEVICE_STATE_DISCHARGING)) {
g_string_append (description, device_desc);
g_string_append_printf (description, " (%.0f%%)", percentage);
goto out;