aboutsummaryrefslogtreecommitdiff
path: root/lib/source.vala
diff options
context:
space:
mode:
Diffstat (limited to 'lib/source.vala')
-rw-r--r--lib/source.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/source.vala b/lib/source.vala
index 38a628c1..b7d7a971 100644
--- a/lib/source.vala
+++ b/lib/source.vala
@@ -100,12 +100,12 @@ public class Indicator.Keyboard.Source : Object {
fcitx = name;
}
} else if (variant.is_of_type (new VariantType ("a{ss}"))) {
- var iter = variant.iterator ();
+ foreach (var pair in variant) {
+ unowned string key;
+ unowned string value;
- unowned string key;
- unowned string value;
+ ((!) pair).get ("{&s&s}", out key, out value);
- while (iter.next ("{&s&s}", out key, out value)) {
if (key == "xkb") {
xkb = value;
} else if (key == "ibus") {