Merge lp:~unity-team/unity/autohide-load-934514 into lp:unity
| Status: | Needs review |
|---|---|
| Proposed branch: | lp:~unity-team/unity/autohide-load-934514 |
| Merge into: | lp:unity |
| Diff against target: |
56 lines (+29/-0) 2 files modified
launcher/LauncherController.cpp (+10/-0) manual-tests/Launcher.txt (+19/-0) |
| To merge this branch: | bzr merge lp:~unity-team/unity/autohide-load-934514 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Thomi Richards (community) | quality | 2012-08-08 | Approve on 2012-09-10 |
| Tim Penhey (community) | 2012-07-31 | Needs Information on 2012-08-27 | |
|
Review via email:
|
|||
Commit Message
LauncherController: Don't hide the launcher for 3 seconds after it finishes loading on login (LP: #934513)
Description of the Change
Fixes bug #934513 by ensuring the launcher doesn't start hidden, but instead hides 3 seconds after starting up (when autohide is enabled, that is).
| Bilal Akhtar (bilalakhtar) wrote : | # |
Yes, this works. I just re-built and re-tested it, and if the user moves the mouse over the launcher, the ForceReveal(false) does nothing until the mouse moves away from the launcher.
| Tim Penhey (thumper) wrote : | # |
OK. Since this is a "start unity" type test, can I get you to write a manual test for it?
| Unity Merger (unity-merger) wrote : | # |
No commit message specified.
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
auto hide_all_launchers = [&]()
10 + {
11 + for (auto launcher : launchers)
12 + launcher-
13 + return true;
14 + };
15 + sources_
Whi is this timeout always running every 3 seconds?
I'm not sure this is really needed (or a good thing).
Also, probably you could add a sort of unit tests in test_launcher_
| Tim Penhey (thumper) wrote : | # |
Marco, could you provide more of a guideline for an automated test?
| Bilal Akhtar (bilalakhtar) wrote : | # |
Marco, the test doesn't run every three seconds. Once the "return true" call is reached, the timeout stops running. So it runs only once.
| Bilal Akhtar (bilalakhtar) wrote : | # |
Actually, I was wrong. I need to return false rather than true. Change made.
- 2533. By Bilal Akhtar on 2012-08-28
-
Change "return true" to "return false" to destroy timeout
| Thomi Richards (thomir) wrote : | # |
Has conflicts with trunk. needs re-merging.
- 2534. By Bilal Akhtar on 2012-09-04
-
Merge from trunk and fix conflicts
| Bilal Akhtar (bilalakhtar) wrote : | # |
Re-merged, fixed conflicts.
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
Are 3 seconds enough when loading unity on startup? Couldn't this timeout happen when the interface is still loading?
PS: You can use AddTimeoutSeconds and maybe reduce the timeout priority.
| Bilal Akhtar (bilalakhtar) wrote : | # |
Not sure; John preferred to go for 3 seconds (see the description of the linked bug report).
| Thomi Richards (thomir) wrote : | # |
From a quality POV, I'm happy that this code is merged with only a manual test.
Unmerged revisions
- 2534. By Bilal Akhtar on 2012-09-04
-
Merge from trunk and fix conflicts
- 2533. By Bilal Akhtar on 2012-08-28
-
Change "return true" to "return false" to destroy timeout
- 2532. By Bilal Akhtar on 2012-08-08
-
Add manual test for login autohide change
- 2531. By Bilal Akhtar on 2012-08-08
-
Merge from trunk
- 2530. By Bilal Akhtar on 2012-07-31
-
Don't hide the launcher for 3 seconds after it finishes loading on login (LP: #934513)


Do we care about the situation where someone has autohide enabled, and moves the mouse over the launcher within the first three seconds of being logged in?