From 7cbf0b144767bcfcf5aa7bae82700160fc489ab5 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 18 Sep 2023 10:30:55 +0200 Subject: src/user-list.vala: Add debug output on high-contrast toggle switch background change requests. Also reference the conncted-to gsettings by its class property name (KEY_HIGHT_CONTRAST). --- src/user-list.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/user-list.vala b/src/user-list.vala index e410b19..2c2fe3b 100644 --- a/src/user-list.vala +++ b/src/user-list.vala @@ -173,7 +173,10 @@ public class UserList : GreeterList construct { var agsettings = new AGSettings (); - agsettings.notify["high-contrast"].connect (() => { change_background (); }); + agsettings.notify[AGSettings.KEY_HIGH_CONTRAST].connect (() => { + change_background (); + debug ("High contrast switched toggled, new switch state is %b; adjusting background.", AGSettings.get_boolean(AGSettings.KEY_HIGH_CONTRAST)); + }); entry_displayed_start.connect (() => { change_background (); }); entry_displayed_done.connect (() => { change_background (); }); -- cgit v1.2.3