diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-02-24 23:55:20 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-02-24 23:55:20 +0100 |
commit | 537442f28135bdb08e16430ffdda17bec038a25e (patch) | |
tree | 335eafe2aa86fe42e65b1d2cd80f8e651a52fb16 /src/arctica-greeter.vala | |
parent | c99e78a2de7c1be629fb0c343e43d0c98ab1ebe0 (diff) | |
download | arctica-greeter-537442f28135bdb08e16430ffdda17bec038a25e.tar.gz arctica-greeter-537442f28135bdb08e16430ffdda17bec038a25e.tar.bz2 arctica-greeter-537442f28135bdb08e16430ffdda17bec038a25e.zip |
src/arctica-greeter.vala: Turn get_default_session() and validate_session() into non-static methods.
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r-- | src/arctica-greeter.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index 68c8887..5de14dc 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -203,7 +203,7 @@ public class ArcticaGreeter : Object ctx.add_class ("lightdm"); } - public static string? get_default_session () + public string? get_default_session () { var sessions = new List<string> (); sessions.append ("lightdm-xsession"); @@ -237,7 +237,7 @@ public class ArcticaGreeter : Object return null; } - public static string validate_session (string? session) + public string validate_session (string? session) { /* Make sure the given session actually exists. Return it if it does. * otherwise, return the default session. @@ -252,7 +252,7 @@ public class ArcticaGreeter : Object } if (session == null) { - var default_session = ArcticaGreeter.get_default_session (); + var default_session = get_default_session (); debug ("Invalid session: '%s'. Using session '%s' instead.", session, default_session); return default_session; } |