diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-09-18 10:30:55 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-09-18 13:00:38 +0200 |
commit | 7cbf0b144767bcfcf5aa7bae82700160fc489ab5 (patch) | |
tree | ce2c9a0bae85a4e7732b8c83eaba366c19b35a19 /src | |
parent | 233d577f4b25d77260925b827ff20ded73af7b61 (diff) | |
download | arctica-greeter-7cbf0b144767bcfcf5aa7bae82700160fc489ab5.tar.gz arctica-greeter-7cbf0b144767bcfcf5aa7bae82700160fc489ab5.tar.bz2 arctica-greeter-7cbf0b144767bcfcf5aa7bae82700160fc489ab5.zip |
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).
Diffstat (limited to 'src')
-rw-r--r-- | src/user-list.vala | 5 |
1 files changed, 4 insertions, 1 deletions
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 (); }); |