diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-10-03 11:35:43 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-10-03 11:35:43 +0200 |
commit | b98ac089f8d315e939a2f9a1f4252162f83007e3 (patch) | |
tree | b4aee1666ce9224ed4e50a1e12da3a5980c1c543 | |
parent | 1328cb1d6fe87b2efb5f3e700ae05238eb5b8fec (diff) | |
parent | a914e22d4aa9be263b7af1866a593a74204f035b (diff) | |
download | arctica-greeter-b98ac089f8d315e939a2f9a1f4252162f83007e3.tar.gz arctica-greeter-b98ac089f8d315e939a2f9a1f4252162f83007e3.tar.bz2 arctica-greeter-b98ac089f8d315e939a2f9a1f4252162f83007e3.zip |
Merge branch 'tari01-pr/move-orca-onboard-init'
Attributes GH PR #86: https://github.com/ArcticaProject/arctica-greeter/pull/86
-rw-r--r-- | src/arctica-greeter.vala | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index 111eb9d..16b8a16 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -142,10 +142,6 @@ public class ArcticaGreeter : Object { this.pServer = new DBusServer (pConnection, this); pConnection.register_object ("/org/ArcticaProject/ArcticaGreeter", this.pServer); - - /* Initialize OSK and screen reader as configured in gsettings. */ - this.pServer.ToggleOrca (AGSettings.get_boolean(AGSettings.KEY_SCREEN_READER)); - this.pServer.ToggleOnBoard (AGSettings.get_boolean(AGSettings.KEY_ONSCREEN_KEYBOARD)); } catch (IOError pError) { @@ -487,6 +483,17 @@ public class ArcticaGreeter : Object main_window.setup_window (); main_window.show (); main_window.get_window ().focus (Gdk.CURRENT_TIME); + + try + { + /* Initialize OSK and screen reader as configured in gsettings. */ + this.pServer.ToggleOrca (AGSettings.get_boolean(AGSettings.KEY_SCREEN_READER)); + this.pServer.ToggleOnBoard (AGSettings.get_boolean(AGSettings.KEY_ONSCREEN_KEYBOARD)); + } + catch (Error pError) + { + error ("%s\n", pError.message); + } } public bool is_authenticated () |