aboutsummaryrefslogtreecommitdiff
path: root/lib/main.vala
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-08-28 23:08:44 +0800
committerWilliam Hua <william.hua@canonical.com>2013-08-28 23:08:44 +0800
commitf1416ee304e6025e9b65270e6ab5810153632ad4 (patch)
treed8e2f242f9513ec74b2b1bfef1c8e56cf61f26a4 /lib/main.vala
parente322058091faf384ee8e8ba21dc09aa2203656c6 (diff)
downloadayatana-indicator-keyboard-f1416ee304e6025e9b65270e6ab5810153632ad4.tar.gz
ayatana-indicator-keyboard-f1416ee304e6025e9b65270e6ab5810153632ad4.tar.bz2
ayatana-indicator-keyboard-f1416ee304e6025e9b65270e6ab5810153632ad4.zip
Append input source suffix to accessible-desc.
Diffstat (limited to 'lib/main.vala')
-rw-r--r--lib/main.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/main.vala b/lib/main.vala
index d8b6588e..cf196650 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -366,7 +366,8 @@ public class Indicator.Keyboard.Service : Object {
var builder = new VariantBuilder (new VariantType ("a{sv}"));
builder.add ("{sv}", "visible", new Variant.boolean (visible));
if (name != null) {
- builder.add ("{sv}", "accessible-desc", new Variant.string ((!) name));
+ var suffix = _ ("input source");
+ builder.add ("{sv}", "accessible-desc", new Variant.string (@"$((!) name) $suffix"));
}
if (icon != null) {
builder.add ("{sv}", "icon", ((!) icon).serialize ());