summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2021-03-09 12:01:39 +0100
committerRobert Antoni Buj Gelonch <[email protected]>2021-03-09 14:15:49 +0100
commit266912b783cd1df555dac53d9ceeb091e05fcc12 (patch)
treef2ad7ea8cea82017ed15694f77123afaf1ebdd59
parent6c59c9f9e8812e5e8d22e949edf41e4cc327eb96 (diff)
downloadmate-power-manager-266912b783cd1df555dac53d9ceeb091e05fcc12.tar.bz2
mate-power-manager-266912b783cd1df555dac53d9ceeb091e05fcc12.tar.xz
gpm-prefs-core: fix building
-rw-r--r--src/gpm-prefs-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index 018a75d..4e3480b 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -556,8 +556,9 @@ prefs_setup_battery (GpmPrefs *prefs)
g_settings_bind (prefs->priv->settings, GPM_SETTINGS_IDLE_DIM_BATT,
widget, "active",
G_SETTINGS_BIND_DEFAULT);
+ widget = GTK_WIDGET (gtk_builder_get_object (prefs->priv->builder, "checkbutton_battery_keyboard_reduce"));
g_settings_bind (prefs->priv->settings, GPM_SETTINGS_KBD_BACKLIGHT_BATT_REDUCE,
- GET_WIDGET ("checkbutton_battery_keyboard_reduce"), "active",
+ widget, "active",
G_SETTINGS_BIND_DEFAULT);
if (prefs->priv->has_button_lid == FALSE) {