Merge lp:~aacid/ubuntu-ui-toolkit/improveIconSearching into lp:ubuntu-ui-toolkit/staging
Proposed by
Albert Astals Cid
Status: | Merged |
---|---|
Approved by: | Tim Peeters |
Approved revision: | 1901 |
Merged at revision: | 1905 |
Proposed branch: | lp:~aacid/ubuntu-ui-toolkit/improveIconSearching |
Merge into: | lp:ubuntu-ui-toolkit/staging |
Diff against target: |
161 lines (+73/-8) 6 files modified
src/Ubuntu/Components/plugin/unitythemeiconprovider.cpp (+24/-5) tests/unit_x11/tst_iconprovider/icons/hicolor/index.theme (+10/-0) tests/unit_x11/tst_iconprovider/icons/mockTheme/index.theme (+1/-0) tests/unit_x11/tst_iconprovider/icons/mockTheme2/index.theme (+3/-0) tests/unit_x11/tst_iconprovider/icons/mockTheme3/index.theme (+10/-0) tests/unit_x11/tst_iconprovider/tst_iconprovider.cpp (+25/-3) |
To merge this branch: | bzr merge lp:~aacid/ubuntu-ui-toolkit/improveIconSearching |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
ubuntu-sdk-build-bot | continuous-integration | Approve | |
Tim Peeters | Approve | ||
Review via email: mp+289204@code.launchpad.net |
Commit message
Improve icon file searching
Leave searching in hicolor to the end
Do not search on icon themes we've already searched
Description of the change
hicolor is the last theme, don't search it before others, for example without this patch the "search" icon is searched at suru, Humanity, Adwaita, hicolor and finally ubuntu-mobile where it is found. If hicolor had a search icon we would be incorrectly returning it.
Also themes can have parents that are recursive, i.e. suru has Humanity and ubuntu-mobile as parents and ubuntu-mobile also has Humanity as parent, so when we get to ubuntu-mobile it doesn't make sense searching Humanity again.
To post a comment you must log in.
Can we add a test to tst_iconprovide r.cpp that checks the new behavior?