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
1=== modified file 'dash/DashView.cpp'
2--- dash/DashView.cpp 2013-04-04 17:42:29 +0000
3+++ dash/DashView.cpp 2013-04-05 09:53:27 +0000
4@@ -1135,15 +1135,8 @@
5 }
6 else if (/* visible_ && */ handled_type == NOT_HANDLED)
7 {
8- if (lens_bar_->GetActiveLensId() != id)
9- {
10- lens_bar_->Activate(id);
11- }
12- else
13- {
14- ubus_manager_.SendMessage(UBUS_OVERLAY_CLOSE_REQUEST, NULL,
15- glib::Source::Priority::HIGH);
16- }
17+ ubus_manager_.SendMessage(UBUS_OVERLAY_CLOSE_REQUEST, NULL,
18+ glib::Source::Priority::HIGH);
19 }
20 else if (/* visible_ && */ handled_type == GOTO_DASH_URI)
21 {
22
23=== modified file 'dash/LensBar.h'
24--- dash/LensBar.h 2013-03-29 17:21:37 +0000
25+++ dash/LensBar.h 2013-04-05 09:53:27 +0000
26@@ -61,8 +61,6 @@
27 void Activate(std::string id);
28 void ActivateNext();
29 void ActivatePrevious();
30-
31- std::string GetActiveLensId() const;
32
33 sigc::signal<void, std::string const&> lens_activated;
34
35@@ -83,6 +81,7 @@
36 std::string GetName() const;
37 void AddProperties(GVariantBuilder* builder);
38
39+ std::string GetActiveLensId() const;
40 typedef std::unique_ptr<nux::AbstractPaintLayer> LayerPtr;
41
42 LensIcons icons_;
43
44=== modified file 'debian/changelog'
45--- debian/changelog 2013-04-02 16:52:38 +0000
46+++ debian/changelog 2013-04-05 09:53:27 +0000
47@@ -1,8 +1,14 @@
48 unity (7.0.0-0ubuntu1) UNRELEASED; urgency=low
49
50+ * Revert r3266 "Don't close the dash when switching from the command lens
51+ to the home lens.", it's breaking dash closing for individual lens,
52+ which also result in a serie of failing tests (lp: #1164915)
53+
54+ [ Stephen M. Webb ]
55 * Bumped released version to 7.0.0
56
57- -- Stephen M. Webb <stephen.webb@canonical.com> Tue, 02 Apr 2013 12:51:28 -0400
58+
59+ -- Sebastien Bacher <seb128@ubuntu.com> Fri, 05 Apr 2013 11:46:59 +0200
60
61 unity (6.12.0daily13.04.01-0ubuntu1) raring; urgency=low
62
63
64=== modified file 'tests/autopilot/unity/tests/test_dash.py'
65--- tests/autopilot/unity/tests/test_dash.py 2013-04-04 17:42:29 +0000
66+++ tests/autopilot/unity/tests/test_dash.py 2013-04-05 09:53:27 +0000
67@@ -76,18 +76,8 @@
68 """Switch to command lens without closing the dash."""
69 self.unity.dash.ensure_visible()
70 self.unity.dash.reveal_command_lens()
71- self.assertThat(self.unity.dash.visible, Eventually(Equals(True)))
72 self.assertThat(self.unity.dash.active_lens, Eventually(Equals('commands.lens')))
73
74- def test_can_go_from_command_lens_to_dash(self):
75- """We must be able to go from the command lens to the dash (home lens)."""
76- self.unity.dash.reveal_command_lens()
77-
78- # Since the dash is visible we can't use ensure_visible().
79- self.keybinding("dash/reveal", 0.1)
80- self.assertThat(self.unity.dash.visible, Eventually(Equals(True)))
81- self.assertThat(self.unity.dash.active_lens, Eventually(Equals('home.lens')))
82-
83 def test_alt_f4_close_dash(self):
84 """Dash must close on alt+F4."""
85 self.unity.dash.ensure_visible()