diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-02-24 20:59:56 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-02-24 20:59:56 +0100 |
commit | 28440bc2f16cdd24a129cce17839aeceeabf2f41 (patch) | |
tree | 83d4c49eb77cd02fa46308e98148a72a0a05192f | |
parent | 2c2cc676770044aafb61db0cef306a98950e0ac3 (diff) | |
download | arctica-greeter-28440bc2f16cdd24a129cce17839aeceeabf2f41.tar.gz arctica-greeter-28440bc2f16cdd24a129cce17839aeceeabf2f41.tar.bz2 arctica-greeter-28440bc2f16cdd24a129cce17839aeceeabf2f41.zip |
src/arctica-greeter.vala: Move ArcticaGreeter method further up again, so it is located below the constructor() method.
-rw-r--r-- | src/arctica-greeter.vala | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index cbccb04..077f07d 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -106,6 +106,22 @@ public class ArcticaGreeter : Object } } + /* + * Note that we need a way to specify a parameter for the initial instance + * creation of the singleton, but also a constructor that takes no + * parameters for later usage. + * + * Making the parameter optional is a good compromise. + * + * This this parameter is construct-only, initializing it by passing it to + * the GObject constructor is both the correct way to do it, and it will + * additionally avoid changing it in later calls of our constructor. + */ + public ArcticaGreeter (bool test_mode_ = false) + { + Object (test_mode: test_mode_); + } + public void go () { /* Render things after xsettings is ready */ @@ -145,22 +161,6 @@ public class ArcticaGreeter : Object } } - /* - * Note that we need a way to specify a parameter for the initial instance - * creation of the singleton, but also a constructor that takes no - * parameters for later usage. - * - * Making the parameter optional is a good compromise. - * - * This this parameter is construct-only, initializing it by passing it to - * the GObject constructor is both the correct way to do it, and it will - * additionally avoid changing it in later calls of our constructor. - */ - public ArcticaGreeter (bool test_mode_ = false) - { - Object (test_mode: test_mode_); - } - public string? get_state (string key) { try |