diff options
Diffstat (limited to 'lib/source.vala')
-rw-r--r-- | lib/source.vala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/source.vala b/lib/source.vala index 2777f521..7850f211 100644 --- a/lib/source.vala +++ b/lib/source.vala @@ -100,12 +100,11 @@ public class Indicator.Keyboard.Source : Object { fcitx = name; } } else if (variant.is_of_type (new VariantType ("a{ss}"))) { - VariantIter iter; + var iter = variant.iterator (); + unowned string key; unowned string value; - variant.get ("a{ss}", out iter); - while (iter.next ("{&s&s}", out key, out value)) { if (key == "xkb") { xkb = value; |