diff options
-rw-r--r-- | src/gpm-prefs-core.c | 3 |
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) { |