diff options
author | William Hua <william.hua@canonical.com> | 2014-09-12 12:19:06 -0400 |
---|---|---|
committer | William Hua <william.hua@canonical.com> | 2014-09-12 12:19:06 -0400 |
commit | 449e1ab74019f4d1e9d60f3b97a31309a6f793fa (patch) | |
tree | bb04f341af6e22b99a512615d47828e49429706b /lib/source.vala | |
parent | 79042408b9bd304c61578a8c94e3a131a74444b7 (diff) | |
download | ayatana-indicator-keyboard-449e1ab74019f4d1e9d60f3b97a31309a6f793fa.tar.gz ayatana-indicator-keyboard-449e1ab74019f4d1e9d60f3b97a31309a6f793fa.tar.bz2 ayatana-indicator-keyboard-449e1ab74019f4d1e9d60f3b97a31309a6f793fa.zip |
Use iterator () method.
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; |