aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-08-29 03:42:45 +0000
committerTarmac <Unknown>2013-08-29 03:42:45 +0000
commitb0f1037825003bfb205fc878812e7d47363e817b (patch)
tree2a084dad94fcf5ac54b1935c11102a31f041c6b2 /lib
parentee3f00b79a6108e8cb0e1884bf9bec54703e7fc8 (diff)
parent807c6d8708d93d49c20ab14f13e343828d0bf3df (diff)
downloadayatana-indicator-keyboard-b0f1037825003bfb205fc878812e7d47363e817b.tar.gz
ayatana-indicator-keyboard-b0f1037825003bfb205fc878812e7d47363e817b.tar.bz2
ayatana-indicator-keyboard-b0f1037825003bfb205fc878812e7d47363e817b.zip
Append input source suffix to accessible-desc as described in design spec.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'lib')
-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..7aac365c 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 description = _ ("%s input source").printf ((!) name);
+ builder.add ("{sv}", "accessible-desc", new Variant.string (description));
}
if (icon != null) {
builder.add ("{sv}", "icon", ((!) icon).serialize ());