summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNutchanon Wetchasit <[email protected]>2015-11-05 13:02:14 +0700
committerWolfgang Ulbrich <[email protected]>2015-11-05 20:39:13 +0100
commit954a80e6c2f945c6abf0a244d1a5dcb14c0ac5fb (patch)
tree9f851019f74524ec338aa57e8b37fb54795aa6f5
parent936504456393b861e26f2d69612208f364127136 (diff)
downloadmate-power-manager-954a80e6c2f945c6abf0a244d1a5dcb14c0ac5fb.tar.bz2
mate-power-manager-954a80e6c2f945c6abf0a244d1a5dcb14c0ac5fb.tar.xz
Acknowledge changes in AC backlight GSettings when running on battery
-rw-r--r--src/gpm-backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpm-backlight.c b/src/gpm-backlight.c
index 288dcc2..93e4567 100644
--- a/src/gpm-backlight.c
+++ b/src/gpm-backlight.c
@@ -380,7 +380,7 @@ gpm_settings_key_changed_cb (GSettings *settings, const gchar *key, GpmBacklight
"on-battery", &on_battery,
NULL);
- if (!on_battery && g_strcmp0 (key, GPM_SETTINGS_BRIGHTNESS_AC) == 0) {
+ if (g_strcmp0 (key, GPM_SETTINGS_BRIGHTNESS_AC) == 0) {
backlight->priv->master_percentage = g_settings_get_double (settings, key);
gpm_backlight_brightness_evaluate_and_set (backlight, FALSE, TRUE);