From f485f87438c2c80bf378b42d997e9adde4d99cae Mon Sep 17 00:00:00 2001 From: William Hua Date: Fri, 20 Sep 2013 21:22:57 -0400 Subject: Fallback to LightDM default. --- lib/main.vala | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib') diff --git a/lib/main.vala b/lib/main.vala index 485f37a4..7daba518 100644 --- a/lib/main.vala +++ b/lib/main.vala @@ -251,6 +251,16 @@ public class Indicator.Keyboard.Service : Object { } } + if (list.size == 0) { + var layout = LightDM.get_layout (); + + var source = layout.name; + source = source.replace (" ", "+"); + source = source.replace ("\t", "+"); + + list.add (source); + } + var builder = new VariantBuilder (new VariantType ("a(ss)")); foreach (var layout in list) { -- cgit v1.2.3