Merge lp://qastaging/~brandontschaefer/unity/fix-915828 into lp://qastaging/unity

Proposed by Brandon Schaefer
Status: Merged
Approved by: Tim Penhey
Approved revision: no longer in the source branch.
Merged at revision: 1962
Proposed branch: lp://qastaging/~brandontschaefer/unity/fix-915828
Merge into: lp://qastaging/unity
Diff against target: 46 lines (+17/-0)
3 files modified
manual-tests/Dash.txt (+12/-0)
plugins/unityshell/src/IMTextEntry.cpp (+4/-0)
plugins/unityshell/src/IMTextEntry.h (+1/-0)
To merge this branch: bzr merge lp://qastaging/~brandontschaefer/unity/fix-915828
Reviewer Review Type Date Requested Status
Tim Penhey (community) Approve
Thomi Richards (community) Needs Fixing
Sam Spilsbury (community) Approve
Review via email: mp+88450@code.qastaging.launchpad.net

Description of the change

Fixes the gtk-im-context not getting focused when the dash is opened. A signal from nux was removed causing this; couldn't find one to replace it. So using a property bool when the dash is about to show to call OnFocusIn(); when it is hiding OnFocusOut().

Not sure if I should have exposed those two functions in IMTextEntry.h, if that is not wanted I can add another property bool in IMTextEntry.cpp and use that focus in and out.

To post a comment you must log in.
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Is it possible to make DashView, DashSearchBar and IMEntry use named constructors ? In that case, you can create an DashView and DashSearchBar shared ptr and then pass that to the IMEntry constructor, then assign the IMEntry object to the DashSearchBar.

review: Needs Fixing
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Any updates ?

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Looking into a different signal to see if that can fix it. Also looking into a posisble nux fix. Else will look into using name constructors!

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Is this covered by tests already ?

review: Approve
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

As of right now there are no test cases, and Im not sure how to automate this so Ill push a manual test.

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

This should be an autopilot test, not a manual test. This will be super-easy to write in autopilot. See the other tests in tests/autopilot/autopilot/tests/dash_tests.py for a hint as to how to write the test.

Cheers,

review: Needs Fixing
Revision history for this message
Tim Penhey (thumper) wrote :

Test will be added after. ibus support is critical.

Revision history for this message
Unity Merger (unity-merger) wrote :

The Jenkins job https://jenkins.qa.ubuntu.com/job/automerge-unity/260/console reported an error when processing this lp:~brandontschaefer/unity/fix-915828 branch.
Not merging it.

Revision history for this message
Tim Penhey (thumper) wrote :

/home/tim/src/unity/hacking/plugins/unityshell/src/IMTextEntry.cpp: In constructor ‘unity::IMTextEntry::IMTextEntry()’:
/home/tim/src/unity/hacking/plugins/unityshell/src/IMTextEntry.cpp:49:3: error: ‘OnKeyNavFocusChange’ was not declared in this scope

Probably a trivial fix.

review: Needs Fixing
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Sorry looks like that just got changed in nux to key_nav_focus_change. Submitting a fix soon!

Revision history for this message
Tim Penhey (thumper) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.