aboutsummaryrefslogtreecommitdiff
path: root/lib/source.vala
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2014-09-12 12:19:06 -0400
committerWilliam Hua <william.hua@canonical.com>2014-09-12 12:19:06 -0400
commit449e1ab74019f4d1e9d60f3b97a31309a6f793fa (patch)
treebb04f341af6e22b99a512615d47828e49429706b /lib/source.vala
parent79042408b9bd304c61578a8c94e3a131a74444b7 (diff)
downloadayatana-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.vala5
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;