Merge lp://qastaging/~kamstrup/unity/home-lenses into lp://qastaging/unity
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Michal Hruby | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 1868 | ||||||||
Proposed branch: | lp://qastaging/~kamstrup/unity/home-lenses | ||||||||
Merge into: | lp://qastaging/unity | ||||||||
Diff against target: |
3591 lines (+1781/-1033) 35 files modified
HACKING (+7/-0) UnityCore/CMakeLists.txt (+2/-0) UnityCore/Categories.cpp (+8/-0) UnityCore/Categories.h (+1/-0) UnityCore/Filters.cpp (+8/-0) UnityCore/Filters.h (+1/-0) UnityCore/GLibDBusProxy.cpp (+11/-0) UnityCore/GLibDBusProxy.h (+1/-0) UnityCore/GLibWrapper.cpp (+5/-0) UnityCore/GLibWrapper.h (+1/-0) UnityCore/HomeLens.cpp (+957/-0) UnityCore/HomeLens.h (+79/-0) UnityCore/Lens.cpp (+128/-55) UnityCore/Lens.h (+17/-6) UnityCore/Model-inl.h (+47/-9) UnityCore/Model.h (+11/-0) UnityCore/Results.cpp (+8/-0) UnityCore/Results.h (+1/-0) com.canonical.Unity.gschema.xml (+10/-3) plugins/unityshell/src/DashView.cpp (+41/-9) plugins/unityshell/src/DashView.h (+4/-2) plugins/unityshell/src/HomeView.cpp (+0/-252) plugins/unityshell/src/HomeView.h (+0/-93) plugins/unityshell/src/LensBar.cpp (+13/-3) plugins/unityshell/src/LensView.cpp (+11/-2) plugins/unityshell/src/PlacesHomeView.cpp (+0/-378) plugins/unityshell/src/PlacesHomeView.h (+0/-72) plugins/unityshell/src/ResultViewGrid.cpp (+13/-2) po/POTFILES.in (+0/-1) po/unity.pot (+0/-120) standalone-clients/CMakeLists.txt (+0/-4) standalone-clients/standalone_dash.cpp (+0/-16) tests/CMakeLists.txt (+7/-6) tests/test_home_lens.cpp (+362/-0) tests/test_utils.h (+27/-0) |
||||||||
To merge this branch: | bzr merge lp://qastaging/~kamstrup/unity/home-lenses | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michal Hruby (community) | Approve | ||
Andrea Azzarone (community) | Needs Information | ||
Review via email: mp+89669@code.qastaging.launchpad.net |
Description of the change
Replace the Unity home screen tiles with a "merged lens view" where lenses can contribute any categories they see fit.
settings: introduced a new gsettings key in the com.canonical.
libunity-core: Added a HomeLens class that implements Lens and Lenses interfaces. The typical use case is to add a FilesystemLenses to the HomeLens which will make it automatically merge all lenses found on the fs. In testing we implement custom Lenses instances and add those to the HomeLens in stead.
unityshell: Removed the tiled homescreen and use a bog standard LensView to render the HomeLens in stead. Fixed a bunch of places where we assumed that Lenses' categories were always only appended to. This is no longer true with the HomeLens. Also important: Fix the SetViewType() calling semantics to the lenses when showing/hiding the dash and when switching between the lenses.
Testing it out:
For this branch to work you need also: lp:~kamstrup/unity-lens-applications/home-lenses, lp:~kamstrup/unity-lens-files/home-lenses, and lp:~mhr3/unity-lens-music/home-lenses. Add to that latest bamf. Without these you will not see the correct results.
To validate the results: Make sure that bringing up the dash resets the search and shows you a default view with exactly 3 categories in this order: Recent Apps, Recent Files, and Downloads. Then do a search and validate that you have exactly 3 categories in this order Applications, Files & Folders, and Music.
Finally; launch an app that is not a favorite, then bring up the bring up the dash home screen and assert that the running app is *not* in the recent apps category (but showing in the launcher). Then close the app and bring up the dash again. The app should now show under Recent Apps.
Design review:
Home screen without search: https:/
Home screen with search: https:/
Meh. Sorry for the i18n noise. No idea how that got here. Will try to remove.