Merge lp:~3v1n0/unity/switcher-no-detail-animation-init into lp:unity
Proposed by
Marco Trevisan (Treviño)
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3135 |
Proposed branch: | lp:~3v1n0/unity/switcher-no-detail-animation-init |
Merge into: | lp:unity |
Diff against target: |
448 lines (+135/-43) 9 files modified
launcher/SwitcherController.cpp (+39/-23) launcher/SwitcherController.h (+5/-4) launcher/SwitcherControllerImpl.h (+2/-1) launcher/SwitcherView.cpp (+37/-7) launcher/SwitcherView.h (+6/-0) plugins/unityshell/src/GesturalWindowSwitcher.cpp (+2/-2) plugins/unityshell/src/unityshell.cpp (+7/-4) tests/test_switcher_controller.cpp (+18/-0) tests/test_switcher_view.cpp (+19/-2) |
To merge this branch: | bzr merge lp:~3v1n0/unity/switcher-no-detail-animation-init |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brandon Schaefer (community) | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+146771@code.launchpad.net |
Commit message
SwitcherController: add InitiateDetail function to initialize the detail mode
It disables the animation at the beginning, then it re-enables it once needed.
Description of the change
When initializing the switcher in detail mode it should not show any spread animation.
To do that I've added an animate property to the SwitcherView that toggle the switcher animations, then this option is set to false when the switcher is initialized in detail mode, and re-enabled as soon as the detail-mode is disabled again.
Unit tests added.
To post a comment you must log in.
LGTM. Works, and tests pass.