Merge lp:~brandontschaefer/unity/hud-to-dash-fix into lp:unity
Proposed by
Brandon Schaefer
on 2012-03-30
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Tim Penhey on 2012-04-03 | ||||
| Approved revision: | 2199 | ||||
| Merged at revision: | 2215 | ||||
| Proposed branch: | lp:~brandontschaefer/unity/hud-to-dash-fix | ||||
| Merge into: | lp:unity | ||||
| Diff against target: |
92 lines (+30/-3) 5 files modified
plugins/unityshell/src/HudController.cpp (+2/-0) plugins/unityshell/src/LauncherController.cpp (+7/-0) plugins/unityshell/src/LauncherController.h (+2/-0) plugins/unityshell/src/unityshell.cpp (+3/-0) tests/autopilot/autopilot/tests/test_hud.py (+16/-3) |
||||
| To merge this branch: | bzr merge lp:~brandontschaefer/unity/hud-to-dash-fix | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Tim Penhey (community) | 2012-03-30 | Approve on 2012-04-03 | |
|
Review via email:
|
|||
Commit Message
Fixes the pinyin pop up box disappearing in the hud.
Description of the Change
== Problem ==
When the Hud gets closed it doesn't emit end_key_nav, which resets the preedit box for ibus-pinyin engine. So when you reopened the Hud it wouldn't redraw the preedit window, because it didn't know it disappeared.
== Fix ==
The fix was to force Hud to lose key nav mode. This caused a problem with key focus when switching from the Hud to the Dash, this was fixed by making sure the Hud closes BEFORE the Dash opens.
== Test ==
Autopilot test
To post a comment you must log in.
lp:~brandontschaefer/unity/hud-to-dash-fix
updated
on 2012-04-03
- 2197. By Brandon Schaefer on 2012-04-03
-
* Fixed ap test
- 2198. By Brandon Schaefer on 2012-04-03
-
* Merged trunk, fixed conflict
- 2199. By Brandon Schaefer on 2012-04-03
-
* More fixes to the ap test


At the end of test_hud_ to_dash_ has_key_ focus you shouldn't need to ensure_hidden on the dash.
If you do because it is a hud test, then change it so the test goes like this:
self. dash.ensure_ visible( ) addCleanup( self.dash. ensure_ hidden)
self.
That way if the assert fails, the dash is still hidden.
Also, PEP-8 says only one blank line between class methods.