Merge lp:~aacid/unity-2d/finetunelauncherlistaccessibledescription into lp:unity-2d

Proposed by Albert Astals Cid
Status: Merged
Approved by: Paweł Stołowski
Approved revision: 1045
Merged at revision: 1047
Proposed branch: lp:~aacid/unity-2d/finetunelauncherlistaccessibledescription
Merge into: lp:unity-2d
Diff against target: 22 lines (+8/-4)
1 file modified
shell/launcher/LauncherList.qml (+8/-4)
To merge this branch: bzr merge lp:~aacid/unity-2d/finetunelauncherlistaccessibledescription
Reviewer Review Type Date Requested Status
Paweł Stołowski (community) Approve
Review via email: mp+100778@code.launchpad.net

Commit message

[Launcher] Fine tune accessibleDescription

Doesn't say "not running" nor the window count for non Application items

Description of the change

[Launcher] Fine tune accessibleDescription

Doesn't say "not running" nor the window count for non Application items

To post a comment you must log in.
1044. By Albert Astals Cid

Revert Trash::windowCount as it was showing a pip in some cases and probably that's designed not to be that way

Revision history for this message
Paweł Stołowski (stolowski) wrote :

There is an extra "%2" for non-application in line 20 of the diff - you can hear Orca saying "<Removable name> percent 2".

review: Needs Fixing
1045. By Albert Astals Cid

remove extra %2

Revision history for this message
Paweł Stołowski (stolowski) wrote :

Works fine!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'shell/launcher/LauncherList.qml'
2--- shell/launcher/LauncherList.qml 2012-03-16 15:47:12 +0000
3+++ shell/launcher/LauncherList.qml 2012-04-05 10:49:19 +0000
4@@ -85,11 +85,15 @@
5 id: launcherItem
6
7 function accessibleDescription() {
8- if (running) {
9- var windows = u2d.tr("%1 window opened", "%1 windows opened", item.windowCount).arg(item.windowCount)
10- return "%1 %2".arg(item.name).arg(windows)
11+ if (item.toString().indexOf("Application") == 0) {
12+ if (running) {
13+ var windows = u2d.tr("%1 window opened", "%1 windows opened", item.windowCount).arg(item.windowCount)
14+ return "%1 %2".arg(item.name).arg(windows)
15+ } else {
16+ return "%1 %2".arg(item.name).arg(u2d.tr("not running"))
17+ }
18 } else {
19- return "%1 %2".arg(item.name).arg(u2d.tr("not running"))
20+ return "%1".arg(item.name)
21 }
22 }
23

Subscribers

People subscribed via source and target branches