summaryrefslogtreecommitdiff
path: root/src/gpm-prefs-core.c
diff options
context:
space:
mode:
authorAndrej Valek <[email protected]>2020-10-23 22:05:37 +0200
committerraveit65 <[email protected]>2020-11-10 20:30:02 +0100
commitd879a18a09e9cbdd43050365e08afd9f9bee72bd (patch)
tree815507378ee5fedfe8999070eff1db9ffb8ebc89 /src/gpm-prefs-core.c
parent42ccd70cbe786d58a68e8479b77b80334186f665 (diff)
downloadmate-power-manager-d879a18a09e9cbdd43050365e08afd9f9bee72bd.tar.bz2
mate-power-manager-d879a18a09e9cbdd43050365e08afd9f9bee72bd.tar.xz
mate-power-preferences: add option to enable keyboard dimming
Diffstat (limited to 'src/gpm-prefs-core.c')
-rw-r--r--src/gpm-prefs-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index b43dd12..4375a6a 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -480,6 +480,9 @@ prefs_setup_battery (GpmPrefs *prefs)
g_settings_bind (prefs->priv->settings, GPM_SETTINGS_IDLE_DIM_BATT,
GET_WIDGET ("checkbutton_battery_display_dim"), "active",
G_SETTINGS_BIND_DEFAULT);
+ g_settings_bind (prefs->priv->settings, GPM_SETTINGS_KBD_BACKLIGHT_BATT_REDUCE,
+ GET_WIDGET ("checkbutton_battery_keyboard_reduce"), "active",
+ G_SETTINGS_BIND_DEFAULT);
if (prefs->priv->has_button_lid == FALSE)
gtk_widget_hide (GET_WIDGET ("box_battery_lid"));