Merge lp:~seb128/unity/1164915-fix into lp:unity

Proposed by Sebastien Bacher
Status: Merged
Approved by: Didier Roche-Tolomelli
Approved revision: no longer in the source branch.
Merged at revision: 3277
Proposed branch: lp:~seb128/unity/1164915-fix
Merge into: lp:unity
Diff against target: 85 lines (+10/-22)
4 files modified
dash/DashView.cpp (+2/-9)
dash/LensBar.h (+1/-2)
debian/changelog (+7/-1)
tests/autopilot/unity/tests/test_dash.py (+0/-10)
To merge this branch: bzr merge lp:~seb128/unity/1164915-fix
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Didier Roche-Tolomelli Approve
Review via email: mp+157313@code.launchpad.net

Commit message

Revert r3266 "Don't close the dash when switching from the command lens to the home lens.", it's breaking dash closing for individual lens, which also result in a serie of failing tests (lp: #1164915)

Description of the change

Revert r3266 "Don't close the dash when switching from the command lens to the home lens.", it's breaking dash closing for individual lens, which also result in a serie of failing tests (lp: #1164915)

To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Thanks for the revert!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'dash/DashView.cpp'
--- dash/DashView.cpp 2013-04-04 17:42:29 +0000
+++ dash/DashView.cpp 2013-04-05 09:53:27 +0000
@@ -1135,15 +1135,8 @@
1135 }1135 }
1136 else if (/* visible_ && */ handled_type == NOT_HANDLED)1136 else if (/* visible_ && */ handled_type == NOT_HANDLED)
1137 {1137 {
1138 if (lens_bar_->GetActiveLensId() != id)1138 ubus_manager_.SendMessage(UBUS_OVERLAY_CLOSE_REQUEST, NULL,
1139 {1139 glib::Source::Priority::HIGH);
1140 lens_bar_->Activate(id);
1141 }
1142 else
1143 {
1144 ubus_manager_.SendMessage(UBUS_OVERLAY_CLOSE_REQUEST, NULL,
1145 glib::Source::Priority::HIGH);
1146 }
1147 }1140 }
1148 else if (/* visible_ && */ handled_type == GOTO_DASH_URI)1141 else if (/* visible_ && */ handled_type == GOTO_DASH_URI)
1149 {1142 {
11501143
=== modified file 'dash/LensBar.h'
--- dash/LensBar.h 2013-03-29 17:21:37 +0000
+++ dash/LensBar.h 2013-04-05 09:53:27 +0000
@@ -61,8 +61,6 @@
61 void Activate(std::string id);61 void Activate(std::string id);
62 void ActivateNext();62 void ActivateNext();
63 void ActivatePrevious();63 void ActivatePrevious();
64
65 std::string GetActiveLensId() const;
6664
67 sigc::signal<void, std::string const&> lens_activated;65 sigc::signal<void, std::string const&> lens_activated;
6866
@@ -83,6 +81,7 @@
83 std::string GetName() const;81 std::string GetName() const;
84 void AddProperties(GVariantBuilder* builder);82 void AddProperties(GVariantBuilder* builder);
8583
84 std::string GetActiveLensId() const;
86 typedef std::unique_ptr<nux::AbstractPaintLayer> LayerPtr;85 typedef std::unique_ptr<nux::AbstractPaintLayer> LayerPtr;
8786
88 LensIcons icons_;87 LensIcons icons_;
8988
=== modified file 'debian/changelog'
--- debian/changelog 2013-04-02 16:52:38 +0000
+++ debian/changelog 2013-04-05 09:53:27 +0000
@@ -1,8 +1,14 @@
1unity (7.0.0-0ubuntu1) UNRELEASED; urgency=low1unity (7.0.0-0ubuntu1) UNRELEASED; urgency=low
22
3 * Revert r3266 "Don't close the dash when switching from the command lens
4 to the home lens.", it's breaking dash closing for individual lens,
5 which also result in a serie of failing tests (lp: #1164915)
6
7 [ Stephen M. Webb ]
3 * Bumped released version to 7.0.08 * Bumped released version to 7.0.0
49
5 -- Stephen M. Webb <stephen.webb@canonical.com> Tue, 02 Apr 2013 12:51:28 -040010
11 -- Sebastien Bacher <seb128@ubuntu.com> Fri, 05 Apr 2013 11:46:59 +0200
612
7unity (6.12.0daily13.04.01-0ubuntu1) raring; urgency=low13unity (6.12.0daily13.04.01-0ubuntu1) raring; urgency=low
814
915
=== modified file 'tests/autopilot/unity/tests/test_dash.py'
--- tests/autopilot/unity/tests/test_dash.py 2013-04-04 17:42:29 +0000
+++ tests/autopilot/unity/tests/test_dash.py 2013-04-05 09:53:27 +0000
@@ -76,18 +76,8 @@
76 """Switch to command lens without closing the dash."""76 """Switch to command lens without closing the dash."""
77 self.unity.dash.ensure_visible()77 self.unity.dash.ensure_visible()
78 self.unity.dash.reveal_command_lens()78 self.unity.dash.reveal_command_lens()
79 self.assertThat(self.unity.dash.visible, Eventually(Equals(True)))
80 self.assertThat(self.unity.dash.active_lens, Eventually(Equals('commands.lens')))79 self.assertThat(self.unity.dash.active_lens, Eventually(Equals('commands.lens')))
8180
82 def test_can_go_from_command_lens_to_dash(self):
83 """We must be able to go from the command lens to the dash (home lens)."""
84 self.unity.dash.reveal_command_lens()
85
86 # Since the dash is visible we can't use ensure_visible().
87 self.keybinding("dash/reveal", 0.1)
88 self.assertThat(self.unity.dash.visible, Eventually(Equals(True)))
89 self.assertThat(self.unity.dash.active_lens, Eventually(Equals('home.lens')))
90
91 def test_alt_f4_close_dash(self):81 def test_alt_f4_close_dash(self):
92 """Dash must close on alt+F4."""82 """Dash must close on alt+F4."""
93 self.unity.dash.ensure_visible()83 self.unity.dash.ensure_visible()