Merge lp:~nick-dedekind/unity/lp1053316.dash-input-form-factor into lp:unity

Proposed by Nick Dedekind
Status: Merged
Merged at revision: 2730
Proposed branch: lp:~nick-dedekind/unity/lp1053316.dash-input-form-factor
Merge into: lp:unity
Diff against target: 28 lines (+3/-4)
2 files modified
dash/DashController.cpp (+3/-0)
dash/DashView.cpp (+0/-4)
To merge this branch: bzr merge lp:~nick-dedekind/unity/lp1053316.dash-input-form-factor
Reviewer Review Type Date Requested Status
Neil J. Patel (community) Approve
Review via email: mp+125449@code.launchpad.net

Commit message

Relayout dash input window when form factor changes (LP#1053316)

Description of the change

Relayout dash input window when form factor changes (LP#1053316)

To post a comment you must log in.
Revision history for this message
Neil J. Patel (njpatel) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'dash/DashController.cpp'
2--- dash/DashController.cpp 2012-09-19 19:54:05 +0000
3+++ dash/DashController.cpp 2012-09-20 10:21:19 +0000
4@@ -79,6 +79,9 @@
5 {
6 if (window_ && view_ && visible_)
7 {
8+ // Relayout here so the input window size updates.
9+ Relayout();
10+
11 window_->PushToFront();
12 window_->SetInputFocus();
13 nux::GetWindowCompositor().SetKeyFocusArea(view_->default_focus());
14
15=== modified file 'dash/DashView.cpp'
16--- dash/DashView.cpp 2012-09-19 22:45:01 +0000
17+++ dash/DashView.cpp 2012-09-20 10:21:19 +0000
18@@ -107,10 +107,6 @@
19 SetupViews();
20 SetupUBusConnections();
21
22- Settings::Instance().form_factor.changed.connect([this](FormFactor) {
23- Relayout();
24- });
25-
26 lenses_.lens_added.connect(sigc::mem_fun(this, &DashView::OnLensAdded));
27 mouse_down.connect(sigc::mem_fun(this, &DashView::OnMouseButtonDown));
28 preview_state_machine_.PreviewActivated.connect(sigc::mem_fun(this, &DashView::BuildPreview));