Merge lp:~nicolas-doffay/unity/fix-lensindicator into lp:unity

Proposed by Nicolas d'Offay
Status: Merged
Approved by: Tim Penhey
Approved revision: no longer in the source branch.
Merged at revision: 2559
Proposed branch: lp:~nicolas-doffay/unity/fix-lensindicator
Merge into: lp:unity
Diff against target: 19 lines (+1/-2)
1 file modified
dash/LensBar.cpp (+1/-2)
To merge this branch: bzr merge lp:~nicolas-doffay/unity/fix-lensindicator
Reviewer Review Type Date Requested Status
Tim Penhey (community) Approve
Review via email: mp+118971@code.launchpad.net

Commit message

Fixed lens indicator bug appearing when no lens was currently selected. Prior to the fix it was checking whether a lens was active, all lenses were active. It actually needed to check whether a lens currently was both active and visible and only then render the indicator.

Description of the change

Fixed lens indicator bug appearing when no lens was currently selected. Prior to the fix it was checking whether a lens was active, all lenses were active. It actually needed to check whether a lens currently was both active and visible and only then render the indicator.

To post a comment you must log in.
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Can we have a test?

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Also, I think we should backport this to 5.0 too.

Revision history for this message
Tim Penhey (thumper) wrote :

Andrea, since this is a pure visual tweak, I don't think we need a test.

I will however compile it and check :-)

Revision history for this message
Tim Penhey (thumper) wrote :

Compiled, and checked.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'dash/LensBar.cpp'
2--- dash/LensBar.cpp 2012-05-07 22:28:17 +0000
3+++ dash/LensBar.cpp 2012-08-09 14:35:27 +0000
4@@ -131,7 +131,7 @@
5
6 for (auto icon: icons_)
7 {
8- if (icon->active)
9+ if (icon->active && icon->IsVisible())
10 {
11 nux::Geometry const& geo = icon->GetGeometry();
12 int middle = geo.x + geo.width/2;
13@@ -147,7 +147,6 @@
14 nux::color::White);
15
16 break;
17-
18 }
19 }
20