From 28440bc2f16cdd24a129cce17839aeceeabf2f41 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 24 Feb 2023 20:59:56 +0100 Subject: src/arctica-greeter.vala: Move ArcticaGreeter method further up again, so it is located below the constructor() method. --- src/arctica-greeter.vala | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src') 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 -- cgit v1.2.3